Disabling Post Revisions: WordPress 3.0

I discovered that WordPress was again saving every revision of every post after I upgraded the   Tom’s Views   blog to WordPress 3.0, though I had disabled this feature back in March.  Click   here   for more details.  But apparently, in this latest version, the automatic retention of these revisions became enabled once more. So I turned off this feature by commenting out line 4398 in the wp-includes/post.php file as follows:

Line 4398 was:

if ( ! WP_POST_REVISIONS )

but now, it’s:

// if ( ! WP_POST_REVISIONS )

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 now been verified to work with WordPress 3.0.

That’s all.

Tom Hesley

Related Posts

One Response to “Disabling Post Revisions: WordPress 3.0”

  1. Toms Diary - Todays Business 2010-06-26 Says:

    [...] 04:40 PM: I figured out how to disable the saving of post revisions.  See details   here.  [...]

Leave a Reply

You must be logged in to post a comment.