mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Show session expired message only when cookie is set.
git-svn-id: https://develop.svn.wordpress.org/trunk@6420 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user