WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/19/2014 08:29:33 PM (5 years ago)
Author:
boonebgorges
Message:

Allow apostrophes in email addresses when adding users via the Dashboard.

Email addresses entered in a number of interfaces were not being stripslashed
properly, with the result that the emails were not being recognized as valid.

Fixes #18039.

File:
1 edited

Legend:

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

    r29206 r29966  
    6464
    6565    if ( isset( $_POST['email'] ))
    66         $user->user_email = sanitize_text_field( $_POST['email'] );
     66        $user->user_email = sanitize_text_field( wp_unslash( $_POST['email'] ) );
    6767    if ( isset( $_POST['url'] ) ) {
    6868        if ( empty ( $_POST['url'] ) || $_POST['url'] == 'http://' ) {
Note: See TracChangeset for help on using the changeset viewer.