Make WordPress Core


Ignore:
Timestamp:
08/28/2015 03:16:02 AM (10 years ago)
Author:
helen
Message:

Drop the hyphen from e-mail and standardize on email.

The AP Stylebook changed this in 2011, and we're woefully inconsistent, so let's go with the standard.

props morganestes, voldemortensen, niallkennedy (for patching on the previous AP style).
fixes #26156.

File:
1 edited

Legend:

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

    r33769 r33774  
    150150        $errors->add( 'user_login', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ));
    151151
    152     /* checking e-mail address */
     152    /* checking email address */
    153153    if ( empty( $user->user_email ) ) {
    154         $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an e-mail address.' ), array( 'form-field' => 'email' ) );
     154        $errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) );
    155155    } elseif ( !is_email( $user->user_email ) ) {
    156156        $errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn&#8217;t correct.' ), array( 'form-field' => 'email' ) );
Note: See TracChangeset for help on using the changeset viewer.