Make WordPress Core

Ticket #25206: 25206.patch

File 25206.patch, 746 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-login.php

     
    303303 * @param object $user The user
    304304 * @param string $new_pass New password for the user in plaintext
    305305 */
    306 function reset_password($user, $new_pass) {
    307         do_action('password_reset', $user, $new_pass);
     306function reset_password( $user, $new_pass ) {
     307        do_action( 'password_reset', $user, $new_pass );
    308308
    309         wp_set_password($new_pass, $user->ID);
     309        wp_set_password( $new_pass, $user->ID );
     310        update_user_option( $user->ID, 'default_password_nag', false, true );
    310311
    311         wp_password_change_notification($user);
     312        wp_password_change_notification( $user );
    312313}
    313314
    314315/**