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:
parent
0c694a7500
commit
5398ac438c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue