Ticket #35736: 35736.patch
File 35736.patch, 3.7 KB (added by , 9 years ago) |
---|
-
wp-includes/pluggable.php
1714 1714 // send a copy of password change notification to the admin 1715 1715 // but check to see if it's the admin whose password we're changing, and skip this 1716 1716 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { 1717 $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";1717 $message = sprintf(__('Password changed for user: %s'), $user->user_login) . "\r\n"; 1718 1718 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1719 1719 // we want to reverse this for the plain text arena of emails. 1720 1720 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1721 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);1721 wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Changed'), $blogname), $message); 1722 1722 } 1723 1723 } 1724 1724 endif; -
wp-includes/user.php
139 139 return new WP_Error( 'invalid_username', 140 140 __( '<strong>ERROR</strong>: Invalid username.' ) . 141 141 ' <a href="' . wp_lostpassword_url() . '">' . 142 __( ' Lost your password?' ) .142 __( 'Reset Password' ) . 143 143 '</a>' 144 144 ); 145 145 } … … 165 165 '<strong>' . $username . '</strong>' 166 166 ) . 167 167 ' <a href="' . wp_lostpassword_url() . '">' . 168 __( ' Lost your password?' ) .168 __( 'Reset Password' ) . 169 169 '</a>' 170 170 ); 171 171 } -
wp-login.php
519 519 */ 520 520 do_action( 'lost_password' ); 521 521 522 login_header(__(' Lost Password'), '<p class="message">' . __('Please enter your username or email address. You will receive a link to create a new password via email.') . '</p>', $errors);522 login_header(__('Reset Password'), '<p class="message">' . __('Please enter your username or email address. You will receive a link to create a new password via email.') . '</p>', $errors); 523 523 524 524 $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : ''; 525 525 … … 605 605 if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { 606 606 reset_password($user, $_POST['pass1']); 607 607 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); 608 login_header( __( ' Password Reset' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' );608 login_header( __( 'Reset Password' ), '<p class="message reset-pass">' . __( 'Your password has been reset.' ) . ' <a href="' . esc_url( wp_login_url() ) . '">' . __( 'Log in' ) . '</a></p>' ); 609 609 login_footer(); 610 610 exit; 611 611 } … … 737 737 738 738 <p id="nav"> 739 739 <a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> | 740 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( ' Lost your password?' ); ?></a>740 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Reset Password' ); ?></a> 741 741 </p> 742 742 743 743 <?php … … 920 920 echo apply_filters( 'register', $registration_url ) . ' | '; 921 921 endif; 922 922 ?> 923 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( ' Lost your password?' ); ?></a>923 <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Reset Password' ); ?></a> 924 924 <?php endif; ?> 925 925 </p> 926 926 <?php } ?>