Clear transients. Closes #1415.

This commit is contained in:
Mike Jolley 2012-08-25 11:09:53 +01:00
parent 3cc0399ef6
commit 6c3b3f41a8
2 changed files with 5 additions and 1 deletions

View File

@ -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)

View File

@ -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();