default_password_nag_edit_user

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: