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:
Andrew Nacin 2010-09-13 16:49:04 +00:00
parent 5c95616ce8
commit 66874878a1
1 changed files with 2 additions and 1 deletions

View File

@ -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 '<div class="error default-password-nag">';