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:
ryan 2007-12-19 22:22:21 +00:00
parent 1f28d55ab3
commit 605e27ccdd

View File

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