Definition:
function default_password_nag_edit_user($user_ID, $old_data) {}
Parameters
- $user_ID
- $old_data
Source code
function default_password_nag_edit_user($user_ID, $old_data) {
if ( ! get_user_option('default_password_nag', $user_ID) ) //Short circuit it.
return;
$new_data = get_userdata($user_ID);
if ( $new_data->user_pass != $old_data->user_pass ) { //Remove the nag if the password has been changed.
delete_user_setting('default_password_nag', $user_ID);
update_user_option($user_ID, 'default_password_nag', false, true);
}
}
782

February 11, 2011 


No comments yet... Be the first to leave a reply!