From 5f05d09dc27d9b85b455f3ea32b61f7dcdea0fc8 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: http://core.svn.wordpress.org/trunk@23388 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }