Don't show both log out and session expired messages when logging out. see #5367
git-svn-id: http://svn.automattic.com/wordpress/trunk@6389 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
28f0d5bf06
commit
a616834549
|
@ -308,6 +308,7 @@ default:
|
|||
} else {
|
||||
$user = wp_validate_auth_cookie();
|
||||
if ( !$user ) {
|
||||
if ( empty($_GET['loggedout']) )
|
||||
$errors['expiredsession'] = __('Your session has expired.');
|
||||
} else {
|
||||
$user = new WP_User($user);
|
||||
|
|
Loading…
Reference in New Issue