default_password_nag_handler

Definition:
function default_password_nag_handler($errors = false) {}

Parameters

  • $errors

Source code

function default_password_nag_handler($errors = false) {

	global $user_ID;

	if ( ! get_user_option('default_password_nag') ) //Short circuit it.

		return;



	//get_user_setting = JS saved UI setting. else no-js-falback code.

	if ( 'hide' == get_user_setting('default_password_nag') || isset($_GET['default_password_nag']) && '0' == $_GET['default_password_nag'] ) {

		delete_user_setting('default_password_nag');

		update_user_option($user_ID, 'default_password_nag', false, true);

	}

}

784

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: