more on portfolio









August 2008
M T W T F S S
« May «-»  
 123
45678910
11121314151617
18192021222324
25262728293031






 


How to: Lie to a Wordpress about it’s version


Just as I said yesterday, I’ve found a more efficient way to remove the “Please Upgrade nag, and that method is to lie to your Wordpress. Let’s get it on. Go to the includes folder on your Wordpress and open version.php.

Note: Same version as yesterday… Wordpress 2.3.2!
<?php

// This holds the version number in a separate file so we can bump it without cluttering the SVN

$wp_version = '2.3.2';
$wp_db_version = 6124;

?>
Don’t be surprise if this is all that you have on the file. Have you heard about the pen is mightier then the sword? Well.. for this “how to”, a digit is mightier then a Katana.

Look at this line:
$wp_version = '2.3.2';
Currently, the up-to-date version of Wordpress is 2.3.3. So go ahead, change the last digit from 2 to 3.

Save the file and test it out.

The nag is gone! And you just lied to your Wordpress about it’s version! Though… I strongly suggest that you update your Wordpress to the latest instead.






Leave a Reply