Add missing filter doc, see [29043].
see #27627. Built from https://develop.svn.wordpress.org/trunk@29102 git-svn-id: http://core.svn.wordpress.org/trunk@28888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5579f03783
commit
a20d6ebec6
|
@ -1892,6 +1892,7 @@ function wp_update_user($userdata) {
|
||||||
// Here we calculate the expiration length of the current auth cookie and compare it to the default expiration.
|
// Here we calculate the expiration length of the current auth cookie and compare it to the default expiration.
|
||||||
// If it's greater than this, then we know the user checked 'Remember Me' when they logged in.
|
// If it's greater than this, then we know the user checked 'Remember Me' when they logged in.
|
||||||
$logged_in_cookie = wp_parse_auth_cookie( '', 'logged_in' );
|
$logged_in_cookie = wp_parse_auth_cookie( '', 'logged_in' );
|
||||||
|
/** This filter is documented in wp-includes/pluggable.php */
|
||||||
$default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $ID, false );
|
$default_cookie_life = apply_filters( 'auth_cookie_expiration', ( 2 * DAY_IN_SECONDS ), $ID, false );
|
||||||
$remember = ( ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life );
|
$remember = ( ( $logged_in_cookie['expiration'] - time() ) > $default_cookie_life );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue