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.

Tom

Related Posts

2 Responses to “Disabling Post Revisions: WordPress 2.9.2”

  1. Toms Diary - Todays Business 2010-05-10 Says:

    [...] 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. [...]

  2. Toms Diary - Disabling Post Revisions 2010-02-17 Says:

    [...] Disabling Post Revisions: WordPress 2.9.2 [...]

Leave a Reply

You must be logged in to post a comment.