Revert "Avoid double deleting the wc_products_onsale transient."
This reverts commit 3d0c084530
.
This commit is contained in:
parent
3d0c084530
commit
f747474a9a
|
@ -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 ) );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue