mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user