From a616834549a62611dff1f40003332384503e69be Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 16 Dec 2007 21:20:18 +0000 Subject: [PATCH] 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 --- wp-login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-login.php b/wp-login.php index 20945281fa..23dc9f76e7 100644 --- a/wp-login.php +++ b/wp-login.php @@ -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);