Remove WordPress 2.8’s Default Password Nag

WordPress 2.8 includes a Password Nag for when you’re using a default generated password. This was done intentionally to help forgetful people like myself who make new installs, and promptly forget the admin password.. You can find the Trac Ticket for it here:  #9710

I’ve been asked how to disable it, A fair enough request, and a very simple thing to achieve.

Simply put this code into a plugin, Or your theme’s functions.php:

[sourcecode lang=”php”]
remove_action(‘admin_notices’, ‘default_password_nag’);

And you’ll never see that red box again..