Yes the annoying update/upgrade notice that appears at the top of the admin screen can be a bit annoying. It can also be quite dangerous. DANGEROUS you say…how so?

Well if you have designed a CMS for a client using wordpress and added extra things even its its simple things like changing the admin images or the memory usage. All will be wiped when the client upgrades and their precious site suddenly looks different or doesnt work at all.

Taking the top update nag isnt the only way to update via the admin panel of course buts its the most obvious one.

So lets get rid of it:

First open: wp-admin/includes/update.php

Scroll to line 135 (if file is in original condition)

Find this line:

add_action( 'admin_notices', 'update_nag', 3 );

And simply comment it out like thus:

/* add_action( 'admin_notices', 'update_nag', 3 ); */

or

// add_action( 'admin_notices', 'update_nag', 3 );

Both will work, once uploaded hey presto no more top update nag. Nag nag nag…your not my Mum WordPress!!

0

One Response to “Hide WordPress Update Nag Without a Plugin”

  1. Neil June 22, 2010 at 12:05 am

    If you want to get rid of the little update button on the dashboard then comment out line 145

    And the link in the footer by commenting out line 105

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Switch to our mobile site

© 2012 Effutio - All Rights Reserved

Perth Web Design - Free Web Host