Changeset 14608 for trunk/wp-admin/includes/user.php
- Timestamp:
- 05/13/2010 09:08:01 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r14588 r14608 835 835 add_action('profile_update', 'default_password_nag_edit_user', 10, 2); 836 836 function default_password_nag_edit_user($user_ID, $old_data) { 837 global $user_ID; 838 if ( ! get_user_option('default_password_nag') ) //Short circuit it. 837 if ( ! get_user_option('default_password_nag', $user_ID) ) //Short circuit it. 839 838 return; 840 839 … … 842 841 843 842 if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed. 844 delete_user_setting('default_password_nag' );843 delete_user_setting('default_password_nag', $user_ID); 845 844 update_user_option($user_ID, 'default_password_nag', false, true); 846 845 }
Note: See TracChangeset
for help on using the changeset viewer.