Make WordPress Core


Ignore:
Timestamp:
08/28/2015 03:16:02 AM (9 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-login.php

    r33474 r33774  
    282282
    283283    if ( empty( $_POST['user_login'] ) ) {
    284         $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));
     284        $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.'));
    285285    } elseif ( strpos( $_POST['user_login'], '@' ) ) {
    286286        $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
     
    303303
    304304    if ( !$user_data ) {
    305         $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
     305        $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or email.'));
    306306        return $errors;
    307307    }
     
    408408
    409409    if ( $message && !wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) )
    410         wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
     410        wp_die( __('The email could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
    411411
    412412    return true;
     
    561561<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    562562    <p>
    563         <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
     563        <label for="user_login" ><?php _e('Username or Email:') ?><br />
    564564        <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
    565565    </p>
     
    749749    </p>
    750750    <p>
    751         <label for="user_email"><?php _e('E-mail') ?><br />
     751        <label for="user_email"><?php _e('Email') ?><br />
    752752        <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label>
    753753    </p>
    754754    <?php
    755755    /**
    756      * Fires following the 'E-mail' field in the user registration form.
     756     * Fires following the 'Email' field in the user registration form.
    757757     *
    758758     * @since 2.1.0
     
    760760    do_action( 'register_form' );
    761761    ?>
    762     <p id="reg_passmail"><?php _e( 'Registration confirmation will be e-mailed to you.' ); ?></p>
     762    <p id="reg_passmail"><?php _e( 'Registration confirmation will be emailed to you.' ); ?></p>
    763763    <br class="clear" />
    764764    <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
     
    873873            $errors->add('registerdisabled', __('User registration is currently not allowed.'));
    874874        elseif  ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
    875             $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
     875            $errors->add('confirm', __('Check your email for the confirmation link.'), 'message');
    876876        elseif  ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
    877             $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
     877            $errors->add('newpass', __('Check your email for your new password.'), 'message');
    878878        elseif  ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
    879             $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
     879            $errors->add('registered', __('Registration complete. Please check your email.'), 'message');
    880880        elseif ( strpos( $redirect_to, 'about.php?updated' ) )
    881881            $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what&#8217;s new.' ), 'message' );
Note: See TracChangeset for help on using the changeset viewer.