mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user