Ticket #25206: 25206.patch
File 25206.patch, 746 bytes (added by , 11 years ago) |
---|
-
src/wp-login.php
303 303 * @param object $user The user 304 304 * @param string $new_pass New password for the user in plaintext 305 305 */ 306 function reset_password( $user, $new_pass) {307 do_action( 'password_reset', $user, $new_pass);306 function reset_password( $user, $new_pass ) { 307 do_action( 'password_reset', $user, $new_pass ); 308 308 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 ); 310 311 311 wp_password_change_notification( $user);312 wp_password_change_notification( $user ); 312 313 } 313 314 314 315 /**