| 1 | Index: wp-admin/includes/user.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/user.php (revision 15603) |
|---|
| 4 | +++ wp-admin/includes/user.php (working copy) |
|---|
| 5 | @@ -355,7 +355,8 @@ |
|---|
| 6 | |
|---|
| 7 | add_action('admin_notices', 'default_password_nag'); |
|---|
| 8 | function default_password_nag() { |
|---|
| 9 | - if ( ! get_user_option('default_password_nag') ) //Short circuit it. |
|---|
| 10 | + global $pagenow; |
|---|
| 11 | + if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it. |
|---|
| 12 | return; |
|---|
| 13 | |
|---|
| 14 | echo '<div class="error default-password-nag">'; |
|---|