Add auth_cookie_expiration filter

git-svn-id: https://develop.svn.wordpress.org/trunk@10691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-03 22:51:55 +00:00
parent a2f0424476
commit 76a0466145
1 changed files with 2 additions and 2 deletions

View File

@ -607,9 +607,9 @@ if ( !function_exists('wp_set_auth_cookie') ) :
*/
function wp_set_auth_cookie($user_id, $remember = false, $secure = '') {
if ( $remember ) {
$expiration = $expire = time() + 1209600;
$expiration = $expire = time() + apply_filters('auth_cookie_expiration', 1209600, $user_id, $remember);
} else {
$expiration = time() + 172800;
$expiration = time() + apply_filters('auth_cookie_expiration', 172800, $user_id, $remember);
$expire = 0;
}