Changeset 33774 for trunk/src/wp-login.php
- Timestamp:
- 08/28/2015 03:16:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r33474 r33774 282 282 283 283 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.')); 285 285 } elseif ( strpos( $_POST['user_login'], '@' ) ) { 286 286 $user_data = get_user_by( 'email', trim( $_POST['user_login'] ) ); … … 303 303 304 304 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.')); 306 306 return $errors; 307 307 } … … 408 408 409 409 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.') ); 411 411 412 412 return true; … … 561 561 <form name="lostpasswordform" id="lostpasswordform" action="<?php echo esc_url( network_site_url( 'wp-login.php?action=lostpassword', 'login_post' ) ); ?>" method="post"> 562 562 <p> 563 <label for="user_login" ><?php _e('Username or E -mail:') ?><br />563 <label for="user_login" ><?php _e('Username or Email:') ?><br /> 564 564 <input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label> 565 565 </p> … … 749 749 </p> 750 750 <p> 751 <label for="user_email"><?php _e('E -mail') ?><br />751 <label for="user_email"><?php _e('Email') ?><br /> 752 752 <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label> 753 753 </p> 754 754 <?php 755 755 /** 756 * Fires following the 'E -mail' field in the user registration form.756 * Fires following the 'Email' field in the user registration form. 757 757 * 758 758 * @since 2.1.0 … … 760 760 do_action( 'register_form' ); 761 761 ?> 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> 763 763 <br class="clear" /> 764 764 <input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" /> … … 873 873 $errors->add('registerdisabled', __('User registration is currently not allowed.')); 874 874 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'); 876 876 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'); 878 878 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'); 880 880 elseif ( strpos( $redirect_to, 'about.php?updated' ) ) 881 881 $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.' ), 'message' );
Note: See TracChangeset
for help on using the changeset viewer.