Revert "Avoid double deleting the wc_products_onsale transient."

This reverts commit 3d0c084530.
This commit is contained in:
Ka Yue Yeung 2013-05-31 14:49:51 +08:00
parent 3d0c084530
commit f747474a9a
1 changed files with 1 additions and 0 deletions

View File

@ -1784,6 +1784,7 @@ class Woocommerce {
);
foreach( $transients_to_clear as $transient ) {
delete_transient( 'wc_products_onsale' );
$wpdb->query( $wpdb->prepare( "DELETE FROM `$wpdb->options` WHERE `option_name` = %s OR `option_name` = %s", '_transient_' . $transient, '_transient_timeout_' . $transient ) );
}