OOPS! again time constant

This commit is contained in:
Shiva Poudel 2014-09-15 01:18:46 +05:45
parent a2ab230efb
commit cf421b1c12
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class WC_Cart {
wc_setcookie( 'woocommerce_cart_hash', md5( json_encode( $this->get_cart() ) ) );
} elseif ( isset( $_COOKIE['woocommerce_items_in_cart'] ) ) {
wc_setcookie( 'woocommerce_items_in_cart', 0, time() - HOUR_IN_SECONDS );
wc_setcookie( 'woocommerce_cart_hash', '', time() - 3600 );
wc_setcookie( 'woocommerce_cart_hash', '', time() - HOUR_IN_SECONDS );
}
do_action( 'woocommerce_set_cart_cookies', $set );
}