Make WordPress Core

Ticket #35736: 35736.3.patch

File 35736.3.patch, 2.4 KB (added by ramiy, 9 years ago)
  • wp-includes/pluggable.php

     
    16711671        // send a copy of password change notification to the admin
    16721672        // but check to see if it's the admin whose password we're changing, and skip this
    16731673        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";
    16751675                // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    16761676                // we want to reverse this for the plain text arena of emails.
    16771677                $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 );
    16791679        }
    16801680}
    16811681endif;
  • wp-login.php

     
    530530         */
    531531        do_action( 'lost_password' );
    532532
    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);
    534534
    535535        $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : '';
    536536
     
    616616        if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) {
    617617                reset_password($user, $_POST['pass1']);
    618618                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>' );
    620620                login_footer();
    621621                exit;
    622622        }