Hack WordPress Version Number

Recently when developing a plugin that examines available updates for WordPress, I needed to test situations where the WordPress Core is out of date.

Rather than going and installing an old version of WordPress, its much easier to simply modify the internal version number to an older version.

Head over to wp-includes/version.php and modify the $wp_version variable.