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.
Related Posts
- Deleting WordPress Post Revisions
- Disabling Post Revisions: 2010-02-17
- Disabling Post Revisions in WordPress 2.8.5
- Disabling Post Revisions: WordPress 2.9.1
- Disabling Post Revisions: WordPress 3.0.1
- Disabling Post Revisions: WordPress 3.0.4
- Today’s Business: 2010-06-26
- WordPress Software Refresh: 2010-05-08
June 26th, 2010 at 1:41 pm
[...] 04:40 PM: I figured out how to disable the saving of post revisions. See details here. [...]