WordPress.org

Make WordPress Core

Ticket #14861: 14861.diff

File 14861.diff, 566 bytes (added by duck_, 4 years ago)
  • wp-admin/includes/user.php

     
    355355 
    356356add_action('admin_notices', 'default_password_nag'); 
    357357function default_password_nag() { 
    358         if ( ! get_user_option('default_password_nag') ) //Short circuit it. 
     358        global $pagenow; 
     359        if ( 'profile.php' == $pagenow || ! get_user_option('default_password_nag') ) //Short circuit it. 
    359360                return; 
    360361 
    361362        echo '<div class="error default-password-nag">';