Possibly my favorite feature introduced in WordPress 2.6 was the wiki-style document revisions. You can now easily get access and/or restore old revisions. It took a few days to get used to, but I have to say I really love it!
I’ve always felt that this feature was intended primarily for multi-author blogs and probably isn’t needed for most WordPress bloggers, as it only serves to grow your wp_posts database table. If you are someone that would like to disable this feature, all you need to do is open your wp-config.php file and add the following code:
define('WP_POST_REVISIONS', false);
This should restore WordPress to handling posts the way it did in the WordPress 2.5 branch and earlier!



Wednesday, July 30th, 2008 at 7:05 am
Post revisions brings a great feature to end users but I am still trying understand reason of why the published posts and the history are being kept on same place in wp_posts. I believe, obviously wp_post table is going to be filled with tones of unnecessary informations.
I believe, that it would be a better idea if there would be a wp_post_revisions table to keep history of posts.
Wednesday, July 30th, 2008 at 8:58 am
alternativ you can set a value for the count of revisions:
define(’WP_POST_REVISIONS’, ‘3′);
Wednesday, July 30th, 2008 at 10:01 am
For those who don’t want to mess with code modifications, I’ll be implementing revision-disabling via a checkbox in version 1.9 of the WordPress Tweaks plugin.
Wednesday, July 30th, 2008 at 10:42 am
@ Mehmet - Yeah, that is kind of along the lines of what I was thinking.
@ Frank - Thanks for adding another solution!
@ John - Awesome! I was hesitant to post this because if people screw up their wp-config file trying this, they get mad at me even though the directions are correct. :mrgreen”
Adding this to your plugin is a great solution!
Wednesday, July 30th, 2008 at 4:19 pm
@Kyle & Frank: Great tips, thanks a lot!
Wednesday, July 30th, 2008 at 5:55 pm
Post Revisions is one of the reasons I was reluctant to upgrade to 2.6, so thanks for the easy to understand solutions Kyle and Frank.
Much appreciated.
And I’m looking forward to the update of your plugin John.
Thursday, July 31st, 2008 at 2:46 am
Kyle, thanks for this.
I really too thought that though post revision is a gr8 thing, it isn’t very useful for personal single-author blogs.
Thursday, July 31st, 2008 at 11:22 am
Thanks for the tips, I don’t really have any use for the post revisions so getting rid of them would be nice. All that extra junk in the database is useless.
Saturday, August 2nd, 2008 at 1:59 pm
Just to let you know I have included the ability to turn off (and back on!) post revisions in WordPress with my WP-CMS Post Control plugin
It also allows you to hide the Post Revision menu, but still keep the function active in addition to being able to disable the Flash uploader and auto saves. The plugin also allows you to hide all aspects of the WordPress 2.6 write panels, including tags, custom fields… you name it!
Sunday, February 1st, 2009 at 1:21 pm
Quick question, anyone know what the MySQL statement to properly remove all revision info from the database? - Thanks.
Trackbacks/Pingbacks
Leave A Comment
Become one of our
Featured Sites
Recent Trackbacks
Contributing Authors
Archives
Extras
WordPress Hacks Copyright © 2007-2009 | An Apricot Media Website
Template by StudioPress | Custom Design by Kyle Eslick and Blog Design Studio
RSS Feed Email RSS