WordPress.org

Make WordPress Core

Changeset 39544


Ignore:
Timestamp:
12/08/2016 03:57:08 AM (18 months ago)
Author:
boonebgorges
Message:

Allow apostrophes in email address during wp-login.php registration.

See #18039 for a related fix when creating users via the Dashboard.

Props tomdxw.
Fixes #34483.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r39326 r39544  
    698698    if ( $http_post ) {
    699699        $user_login = isset( $_POST['user_login'] ) ? $_POST['user_login'] : '';
    700         $user_email = isset( $_POST['user_email'] ) ? $_POST['user_email'] : '';
     700        $user_email = isset( $_POST['user_email'] ) ? wp_unslash( $_POST['user_email'] ) : '';
    701701        $errors = register_new_user($user_login, $user_email);
    702702        if ( !is_wp_error($errors) ) {
Note: See TracChangeset for help on using the changeset viewer.