Make WordPress Core


Ignore:
Timestamp:
11/03/2019 08:10:23 PM (5 years ago)
Author:
whyisjake
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r46417 r46640  
    3636
    3737        if ( ! empty( $_POST['log'] ) ) {
    38             $credentials['user_login'] = $_POST['log'];
     38            $credentials['user_login'] = wp_unslash( $_POST['log'] );
    3939        }
    4040        if ( ! empty( $_POST['pwd'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.