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-admin/includes/user.php

    r45932 r46640  
    4242
    4343    if ( ! $update && isset( $_POST['user_login'] ) ) {
    44         $user->user_login = sanitize_user( $_POST['user_login'], true );
     44        $user->user_login = sanitize_user( wp_unslash( $_POST['user_login'] ), true );
    4545    }
    4646
Note: See TracChangeset for help on using the changeset viewer.