Don't show the default password nag on the profile screen. props duck_, fixes #14861.

git-svn-id: http://svn.automattic.com/wordpress/trunk@15614 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-09-13 16:49:04 +00:00
parent 2030231f66
commit 271aa55c16
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">';