mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-27 14:53:08 +02:00
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
This commit is contained in:
parent
c569c15b6d
commit
5f05d09dc2
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user