Logged out warnings: clear previous errors when interim_login is set, see #23295
git-svn-id: https://develop.svn.wordpress.org/trunk@23691 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
92ffd6850f
commit
b653d65c1c
@ -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
Block a user