mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Login and Registration: Simplify the test for wp_signon() added in [46640].
Make sure it actually tests the change in behavior, previously it passed both before and after the patch. Add `wp_unslash()` to the last remaining instance of `$_POST['user_login']` that didn't have it. See #38744. git-svn-id: https://develop.svn.wordpress.org/trunk@46650 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -373,7 +373,7 @@ function retrieve_password() {
|
||||
$errors->add( 'invalid_email', __( '<strong>ERROR</strong>: There is no account with that username or email address.' ) );
|
||||
}
|
||||
} else {
|
||||
$login = trim( $_POST['user_login'] );
|
||||
$login = trim( wp_unslash( $_POST['user_login'] ) );
|
||||
$user_data = get_user_by( 'login', $login );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user