Don't show both log out and session expired messages when logging out. see #5367
git-svn-id: https://develop.svn.wordpress.org/trunk@6389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6268241e88
commit
dbe216081d
@ -308,7 +308,8 @@ default:
|
||||
} else {
|
||||
$user = wp_validate_auth_cookie();
|
||||
if ( !$user ) {
|
||||
$errors['expiredsession'] = __('Your session has expired.');
|
||||
if ( empty($_GET['loggedout']) )
|
||||
$errors['expiredsession'] = __('Your session has expired.');
|
||||
} else {
|
||||
$user = new WP_User($user);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user