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. Built from https://develop.svn.wordpress.org/trunk@46640 git-svn-id: http://core.svn.wordpress.org/trunk@46440 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -35,7 +35,7 @@ function wp_signon( $credentials = array(), $secure_cookie = '' ) {
|
||||
$credentials = array(); // Back-compat for plugins passing an empty string.
|
||||
|
||||
if ( ! empty( $_POST['log'] ) ) {
|
||||
$credentials['user_login'] = $_POST['log'];
|
||||
$credentials['user_login'] = wp_unslash( $_POST['log'] );
|
||||
}
|
||||
if ( ! empty( $_POST['pwd'] ) ) {
|
||||
$credentials['user_password'] = $_POST['pwd'];
|
||||
|
||||
Reference in New Issue
Block a user