mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Show session expired message only when cookie is set.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6420 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1f28d55ab3
commit
605e27ccdd
@ -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