WordPress.org

Make WordPress Core

Changeset 15614


Ignore:
Timestamp:
09/13/10 16:49:04 (4 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/user.php

    r15542 r15614  
    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 
Note: See TracChangeset for help on using the changeset viewer.