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:
parent
2030231f66
commit
271aa55c16
|
@ -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">';
|
||||
|
|
Loading…
Reference in New Issue