Don't show the default password nag on the profile screen. props duck_, fixes #14861.
git-svn-id: https://develop.svn.wordpress.org/trunk@15614 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5c95616ce8
commit
66874878a1
|
@ -355,7 +355,8 @@ function default_password_nag_edit_user($user_ID, $old_data) {
|
||||||
|
|
||||||
add_action('admin_notices', 'default_password_nag');
|
add_action('admin_notices', 'default_password_nag');
|
||||||
function default_password_nag() {
|
function default_password_nag() {
|
||||||
if ( ! get_user_option('default_password_nag') ) //Short circuit it.
|
global $pagenow;
|
||||||
|
if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it.
|
||||||
return;
|
return;
|
||||||
|
|
||||||
echo '<div class="error default-password-nag">';
|
echo '<div class="error default-password-nag">';
|
||||||
|
|
Loading…
Reference in New Issue