From 12fcb94781845796434eb2180a063e8ff7f4453f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 6 Feb 2013 03:44:43 +0000 Subject: [PATCH] Use a human-readable constant in wp_set_auth_cookie(). fixes #23372. git-svn-id: https://develop.svn.wordpress.org/trunk@23388 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 09caf2f8fb..eed19f3473 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -651,9 +651,9 @@ if ( !function_exists('wp_set_auth_cookie') ) : */ function wp_set_auth_cookie($user_id, $remember = false, $secure = '') { if ( $remember ) { - $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember); + $expiration = $expire = time() + apply_filters('auth_cookie_expiration', 14 * DAY_IN_SECONDS, $user_id, $remember); } else { - $expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember); + $expiration = time() + apply_filters('auth_cookie_expiration', 2 * DAY_IN_SECONDS, $user_id, $remember); $expire = 0; }