Make WordPress Core

Ticket #26156: user.email.diff

File user.email.diff, 1.0 KB (added by morganestes, 11 years ago)

wp-admin/includes/user.php

  • wp-admin/includes/user.php

     
    140140        if ( !$update && username_exists( $user->user_login ) )
    141141                $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ));
    142142
    143         /* checking e-mail address */
     143        /* checking email address */
    144144        if ( empty( $user->user_email ) ) {
    145                 $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) );
     145                $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) );
    146146        } elseif ( !is_email( $user->user_email ) ) {
    147147                $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct.' ), array( 'form-field' => 'email' ) );
    148148        } elseif ( ( $owner_id = email_exists($user->user_email) ) && ( !$update || ( $owner_id != $user->ID ) ) ) {