WordPress.org

Make WordPress Core

Ticket #30647: 30647.patch

File 30647.patch, 618 bytes (added by rittesh.patel, 7 years ago)
  • wp-includes/user.php

     
    17831783         */
    17841784        $user_email = apply_filters( 'pre_user_email', $raw_user_email );
    17851785
    1786         if ( ! $update && ! defined( 'WP_IMPORTING' ) && email_exists( $user_email ) ) {
     1786        if ( ! defined( 'WP_IMPORTING' ) && email_exists( $user_email ) ) {
    17871787                return new WP_Error( 'existing_user_email', __( 'Sorry, that email address is already used!' ) );
    17881788        }
    17891789        $nickname = empty( $userdata['nickname'] ) ? $user_login : $userdata['nickname'];