Logged out warnings: clear previous errors when interim_login is set, see #23295

git-svn-id: http://core.svn.wordpress.org/trunk@23691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Ozz 2013-03-13 23:32:52 +00:00
parent 0c694a7500
commit 5398ac438c
1 changed files with 2 additions and 2 deletions

View File

@ -648,8 +648,8 @@ default:
}
$errors = $user;
// Clear errors if loggedout is set.
if ( !empty($_GET['loggedout']) || $reauth )
// Clear errors if loggedout or interim_login is set.
if ( !empty($_GET['loggedout']) || $reauth || $interim_login )
$errors = new WP_Error();
// If cookies are disabled we can't log in even with a valid user+pass