Make WordPress Core

Ticket #35736: 35736.patch

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

     
    17141714        // send a copy of password change notification to the admin
    17151715        // but check to see if it's the admin whose password we're changing, and skip this
    17161716        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";
    17181718                // The blogname option is escaped with esc_html on the way into the database in sanitize_option
    17191719                // we want to reverse this for the plain text arena of emails.
    17201720                $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);
    17221722        }
    17231723}
    17241724endif;
  • wp-includes/user.php

     
    139139                return new WP_Error( 'invalid_username',
    140140                        __( '<strong>ERROR</strong>: Invalid username.' ) .
    141141                        ' <a href="' . wp_lostpassword_url() . '">' .
    142                         __( 'Lost your password?' ) .
     142                        __( 'Reset Password' ) .
    143143                        '</a>'
    144144                );
    145145        }
     
    165165                                '<strong>' . $username . '</strong>'
    166166                        ) .
    167167                        ' <a href="' . wp_lostpassword_url() . '">' .
    168                         __( 'Lost your password?' ) .
     168                        __( 'Reset Password' ) .
    169169                        '</a>'
    170170                );
    171171        }
  • wp-login.php

     
    519519         */
    520520        do_action( 'lost_password' );
    521521
    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);
    523523
    524524        $user_login = isset($_POST['user_login']) ? wp_unslash($_POST['user_login']) : '';
    525525
     
    605605        if ( ( ! $errors->get_error_code() ) && isset( $_POST['pass1'] ) && !empty( $_POST['pass1'] ) ) {
    606606                reset_password($user, $_POST['pass1']);
    607607                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>' );
    609609                login_footer();
    610610                exit;
    611611        }
     
    737737
    738738<p id="nav">
    739739<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>
    741741</p>
    742742
    743743<?php
     
    920920                echo apply_filters( 'register', $registration_url ) . ' | ';
    921921        endif;
    922922        ?>
    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>
    924924<?php endif; ?>
    925925</p>
    926926<?php } ?>