Changeset 25203
- Timestamp:
- 09/02/2013 03:17:34 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-login.php
r25174 r25203 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); 308 309 wp_set_password($new_pass, $user->ID); 310 311 wp_password_change_notification($user); 306 function reset_password( $user, $new_pass ) { 307 do_action( 'password_reset', $user, $new_pass ); 308 309 wp_set_password( $new_pass, $user->ID ); 310 update_user_option( $user->ID, 'default_password_nag', false, true ); 311 312 wp_password_change_notification( $user ); 312 313 } 313 314
Note: See TracChangeset
for help on using the changeset viewer.