Use DAY_IN_SECONDS constant instead of calculating the value (https://github.com/woocommerce/woocommerce-blocks/pull/8156)
This commit is contained in:
parent
621473f5e5
commit
886786eee1
|
@ -193,7 +193,7 @@ abstract class AbstractCartRoute extends AbstractRoute {
|
|||
* @return int
|
||||
*/
|
||||
protected function get_cart_token_expiration() {
|
||||
return time() + intval( apply_filters( 'wc_session_expiration', 60 * 60 * 48 ) );
|
||||
return time() + intval( apply_filters( 'wc_session_expiration', DAY_IN_SECONDS * 2 ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue