Use DAY_IN_SECONDS constant instead of calculating the value (https://github.com/woocommerce/woocommerce-blocks/pull/8156)

This commit is contained in:
Albert Juhé Lluveras 2023-01-11 17:11:41 +01:00 committed by GitHub
parent 621473f5e5
commit 886786eee1
1 changed files with 1 additions and 1 deletions

View File

@ -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 ) );
}
/**