Ticket #35736: 35736.3.patch
File 35736.3.patch, 2.4 KB (added by , 9 years ago) |
---|
-
wp-includes/pluggable.php
1671 1671 // send a copy of password change notification to the admin 1672 1672 // but check to see if it's the admin whose password we're changing, and skip this 1673 1673 if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { 1674 $message = sprintf( __('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n";1674 $message = sprintf( __( 'Password changed for user: %s' ), $user->user_login ) . "\r\n"; 1675 1675 // The blogname option is escaped with esc_html on the way into the database in sanitize_option 1676 1676 // we want to reverse this for the plain text arena of emails. 1677 1677 $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); 1678 wp_mail( get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message);1678 wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Password Changed'), $blogname ), $message ); 1679 1679 } 1680 1680 } 1681 1681 endif; -
wp-login.php
530 530 */ 531 531 do_action( 'lost_password' ); 532 532 533 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);533 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); 534 534 535 535 $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : ''; 536 536 … … 616 616 if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) { 617 617 reset_password($user, $_POST['pass1']); 618 618 setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); 619 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>' );619 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>' ); 620 620 login_footer(); 621 621 exit; 622 622 }