Make WordPress Core

Ticket #26156: wp-login.email.diff

File wp-login.email.diff, 4.0 KB (added by morganestes, 11 years ago)
  • wp-login.php

     
    267266        $errors = new WP_Error();
    268267
    269268        if ( empty( $_POST['user_login'] ) ) {
    270                 $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or e-mail address.'));
     269                $errors->add('empty_username', __('<strong>ERROR</strong>: Enter a username or email address.'));
    271270        } else if ( strpos( $_POST['user_login'], '@' ) ) {
    272271                $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) );
    273272                if ( empty( $user_data ) )
     
    288287                return $errors;
    289288
    290289        if ( !$user_data ) {
    291                 $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or e-mail.'));
     290                $errors->add('invalidcombo', __('<strong>ERROR</strong>: Invalid username or email.'));
    292291                return $errors;
    293292        }
    294293
     
    385384        $message = apply_filters( 'retrieve_password_message', $message, $key );
    386385
    387386        if ( $message && !wp_mail($user_email, $title, $message) )
    388                 wp_die( __('The e-mail could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
     387                wp_die( __('The email could not be sent.') . "<br />\n" . __('Possible reason: your host may have disabled the mail() function.') );
    389388
    390389        return true;
    391390}
     
    520519
    521520<form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post">
    522521        <p>
    523                 <label for="user_login" ><?php _e('Username or E-mail:') ?><br />
     522                <label for="user_login" ><?php _e('Username or Email:') ?><br />
    524523                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
    525524        </p>
    526525        <?php
     
    679678                <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
    680679        </p>
    681680        <p>
    682                 <label for="user_email"><?php _e('E-mail') ?><br />
     681                <label for="user_email"><?php _e('Email') ?><br />
    683682                <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(wp_unslash($user_email)); ?>" size="25" /></label>
    684683        </p>
    685684        <?php
    686685        /**
    687          * Fires following the 'E-mail' field in the user registration form.
     686         * Fires following the 'Email' field in the user registration form.
    688687         *
    689688         * @since 2.1.0
    690689         */
    691690        do_action( 'register_form' );
    692691        ?>
    693         <p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
     692        <p id="reg_passmail"><?php _e('A password will be emailed to you.') ?></p>
    694693        <br class="clear" />
    695694        <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    696695        <p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p>
     
    802801                elseif  ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] )
    803802                        $errors->add('registerdisabled', __('User registration is currently not allowed.'));
    804803                elseif  ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )
    805                         $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
     804                        $errors->add('confirm', __('Check your email for the confirmation link.'), 'message');
    806805                elseif  ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )
    807                         $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
     806                        $errors->add('newpass', __('Check your email for your new password.'), 'message');
    808807                elseif  ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )
    809                         $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
     808                        $errors->add('registered', __('Registration complete. Please check your email.'), 'message');
    810809                elseif ( strpos( $redirect_to, 'about.php?updated' ) )
    811810                        $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to experience the awesomeness.' ), 'message' );
    812811        }