Clear transients. Closes #1415.
This commit is contained in:
parent
3cc0399ef6
commit
6c3b3f41a8
|
@ -160,6 +160,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
|
||||||
* Tweak - Appended version to scripts to prevent cache issues upon upgrade
|
* Tweak - Appended version to scripts to prevent cache issues upon upgrade
|
||||||
* Tweak - Added fallback for variations variable (JS)
|
* Tweak - Added fallback for variations variable (JS)
|
||||||
* Tweak - Filter for the ajax_loader_url
|
* Tweak - Filter for the ajax_loader_url
|
||||||
|
* Tweak - Clear transients during link_all_variations
|
||||||
* Fix - notice in woocommerce_create_term (kudos nathanielks)
|
* Fix - notice in woocommerce_create_term (kudos nathanielks)
|
||||||
* Localization - Few strings (kudos maxistore)
|
* Localization - Few strings (kudos maxistore)
|
||||||
|
|
||||||
|
|
|
@ -428,6 +428,7 @@ add_action('wp_ajax_woocommerce_add_variation', 'woocommerce_add_variation');
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function woocommerce_link_all_variations() {
|
function woocommerce_link_all_variations() {
|
||||||
|
global $woocommerce;
|
||||||
|
|
||||||
check_ajax_referer( 'link-variations', 'security' );
|
check_ajax_referer( 'link-variations', 'security' );
|
||||||
|
|
||||||
|
@ -570,6 +571,8 @@ function woocommerce_link_all_variations() {
|
||||||
|
|
||||||
endforeach;
|
endforeach;
|
||||||
|
|
||||||
|
$woocommerce->clear_product_transients( $post_id );
|
||||||
|
|
||||||
echo $added;
|
echo $added;
|
||||||
|
|
||||||
die();
|
die();
|
||||||
|
|
Loading…
Reference in New Issue