Disabling Post Revisions: WordPress 2.9.2
I discovered that WordPress was again saving every revision of every post, though I had disabled this feature back in March. Click here for more details. But apparently, in the upgrade to 2.9.2, the automatic retention of these revisions became enabled once more. So I turned off this feature by adding the following lines of code to the wp-config.php file at lines 27 and 28 for each of my blogs:
// Disable post revisions.
define(’WP_POST_REVISIONS’, false);
I also changed line 618 in the wp-settings.php file from
$default_constants = array( ‘WP_POST_REVISIONS’ => true );
to
$default_constants = array( ‘WP_POST_REVISIONS’ => false );
Also note that the line number has not changed from what it was in WordPress 2.9.1.
Then I deleted all the revisions that had been saved to this point from each blog database by executing the following SQL statement:
DELETE FROM wp_posts WHERE post_type = “revision”;
I then logged out and back into each site’s admin id and verified that the revisions saved thus far no longer appear on the Edit Post screen. The deletion apparently worked. These instructions have been verified to work with WordPress 2.9.2.
That’s all.
May 10th, 2010 at 4:39 pm
[...] 07:45 PM: Disabled post revisions on all my blogs, again. They were re-enabled when I refreshed the blog software this past weekend. Details here. [...]
May 10th, 2010 at 4:49 pm
[...] Disabling Post Revisions: WordPress 2.9.2 [...]