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:
ryan 2007-12-16 21:20:18 +00:00
parent 28f0d5bf06
commit a616834549
1 changed files with 2 additions and 1 deletions

View File

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