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:
Andrew Ozz
2009-10-11 11:26:59 +00:00
parent 2dc1de999c
commit 8e956b6488
8 changed files with 63 additions and 23 deletions

View File

@@ -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;