mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-06 23:58:03 +00:00
Login and Registration: Allow email logins to be more flexible.
Allows a login to have an apostorphe. Which would normally be created as a mistake, but this allows the login to happen. Fixes #38744 Props wpkuf, desrosj, socalchristina, bibliofille, santilinwp, nsubugak, sncoker, cafenoirdesign, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@46640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -41,7 +41,7 @@ function edit_user( $user_id = 0 ) {
|
||||
}
|
||||
|
||||
if ( ! $update && isset( $_POST['user_login'] ) ) {
|
||||
$user->user_login = sanitize_user( $_POST['user_login'], true );
|
||||
$user->user_login = sanitize_user( wp_unslash( $_POST['user_login'] ), true );
|
||||
}
|
||||
|
||||
$pass1 = '';
|
||||
|
||||
Reference in New Issue
Block a user