Do you have a WordPress blog that, every time you log on to it you get this big honking notice that you need to upgrade? Have you pretty much decided that you’ll deal with an upgrade when you’re darn good and ready and don’t want to be nagged about it?
That’s pretty much where I’m sitting. Oh, I am not a hamster, I know full well that there is already a “Disable WordPress Core Update” plugin, It just occurred to me that there was an elegant, simple fix for the whole thing.
Tell WordPress that it’s version number is higher than the “new” versions. This way you can upgrade when you’re good and ready, don’t have to look at the nag stripe on the admin screens all the time.
Before I go any farther, be warned that this hack is NOT supported by anyone, especially WordPress developers. Whom I suspect will wholeheartedly frown on the very idea. I don’t even guarantee that it’s going to work for you at all. It did for me but your mileage may vary.
That said and my thoroughly Non-Hamster butt covered just in case, here’s what you need to do:
Start your favorite FTP utility (I use FileZilla) and connect to your blog’s webspace. When you look at the directory there will be a bunch of files and at least three directories. You need to open the directory “wp-includes”. In that directory is a file called “version.php”. Download that file and open it in Notepad or your favorite plain text editor.
Look for this line:
$wp_version = ‘2.5.1’;
Change the number to whatever you want and save the file, and upload it back to the server, overwriting the old copy.
If, for example, you changed it to $wp_version = ‘82.5’;, then when you log into your dashboard, the version number reported at the bottom of the page will be “Version 82.5”
The way this works is by changing the version number that WordPress reports even to itself, you won’t have to look at upgrade nag notices anymore. Of course, when you DO finally upgrade, this hack will be overwritten by the new version.
Remember, I have no doubt that WordPress developers and such will not approve of or even like this hack, definitely won’t support it. In fact, they may well not be thrilled with me for publishing it but I figure what the heck. I’m tired of MY blog nagging me to upgrade and I’ll get around to it when I’m bloody well good and ready.
[Tags]WordPress, WordPress hack, version, version hack, WordPress version hack, stop nagging, no nag hack, no nags[/tags]