From 66874878a1f552a401de1191a51585ad785fe8da Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 13 Sep 2010 16:49:04 +0000 Subject: [PATCH] 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 --- wp-admin/includes/user.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index 1530ead537..ffea0d9708 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -355,7 +355,8 @@ function default_password_nag_edit_user($user_ID, $old_data) { add_action('admin_notices', '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; echo '
';