mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Show the login form in a popup when autosave hits the login grace period, fixes #10704
git-svn-id: https://develop.svn.wordpress.org/trunk@12021 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -539,6 +539,9 @@ function wp_validate_auth_cookie($cookie = '', $scheme = '') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( $expiration < time() ) // AJAX/POST grace period set above
|
||||
$GLOBALS['login_grace_period'] = 1;
|
||||
|
||||
do_action('auth_cookie_valid', $cookie_elements, $user);
|
||||
|
||||
return $user->ID;
|
||||
|
||||
Reference in New Issue
Block a user