Show session expired message only when cookie is set.
git-svn-id: https://develop.svn.wordpress.org/trunk@6420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9af95e4544
commit
4d93675ccc
@ -306,7 +306,7 @@ default:
|
||||
} else {
|
||||
$user = wp_validate_auth_cookie();
|
||||
if ( !$user ) {
|
||||
if ( empty($_GET['loggedout']) )
|
||||
if ( empty($_GET['loggedout']) && !empty($_COOKIE[AUTH_COOKIE]) )
|
||||
$errors['expiredsession'] = __('Your session has expired.');
|
||||
} else {
|
||||
$user = new WP_User($user);
|
||||
|
Loading…
Reference in New Issue
Block a user