Advertisements

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

Advertisements

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 )

Google+ photo

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

Twitter picture

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

Facebook photo

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

Connecting to %s

%d bloggers like this: