Posted on 2 March, 2009 By Kim Woodbridge 50 Comments

How to Disable Post Revisions in WordPress

Revision notes (by jez`)

Since WordPress 2.6 post revisions have been included, which means every save of a draft is saved as a revision of that post. This is a great feature for those working in a collaborative environment with multiple editors and is a way of tracking changes, but for those of us who blog alone, it is an unnecessary feature that adds a lot of additional data that will really increase the size of the WordPress database.

There are two ways to turn off this feature so that post revisions are no longer used nor stored in the database. One is a simple change to your wp-config.php file and the other is a plugin.

Code Solution

You will want to add a line to the wp-config.php file This is the imporant file stored with your WordPress installation that contains the name of your database and the username and password to access it. You can access this file via ftp or your cpanel file manager and can edit it in any text editor, like Notepad.

define(‘WP_POST_REVISIONS’, false);

Now, just the one autosave will be saved. I wasn’t too concerned about this until I realized that one post have 20 revisions and that just seemed like way to much to store in my database. Of course, if you turn off this feature, you won’t have access to the silly WordPress Easter Egg.

Plugin Solution

WP-CMS Post Control builds upon WordPress 2.7 features to give total control over the Write Options. One of the things the plugin does is allow you to turn off the Post Revisions. Some of the other features included are turn off auto-save and turn off the flash uploaded so the browser one if the default.

Do you think it’s worth bothering to turn off Post Revisions to keep your database lighter? Or do you utilize and like that feature?

photo credit: jez


Related Posts:
  • Don’t Let Your WordPress Customizations Get the Best of You
  • How to Link NextGEN Gallery Images to an Individual Page or Post in WordPress
  • WordPress Plugin Compatibility Beta
  • (Anti) Social Lists 10/25/09
  • Theme Switch: Another WordPress Plugin for Theme Development
  • Posted In : WordPress Tips
    If you enjoyed this post, please subscribe to my RSS Feed

    Post to Twitter   Post to Delicious   Post to StumbleUpon

    50 Responses to “How to Disable Post Revisions in WordPress”

    Trackbacks/Pingbacks
    1. How to disable post revisions | WPLover
    2. WordPress and blogging links for 02.03.09 | WPStart.org - WordPress themes, plugins and news
    3. Wordpress Tips: What Happened To My Post? | Mike McCready
    Leave a Comment
    You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .


    Recent Comments

      • softize.net: Yeah, I just upgraded my site in just 5 minutes and it was very very easy to do, thanks to this post also. Sometimes we ...
      • Kim Woodbridge: Hi - Thanks! It still works without any problems :-) I used to use my guide to do upgrades but have done so many now t...
      • Kim Woodbridge: Hi Julie - Tweetdeck does make it a lot easier :-)...
      • softize.net: Hi Kim, I must say this guide was excellent for everyone. You give detailed instructions and security notices that ever...
      • Julie Walraven | Resume Services: This post stuck with me for a long time... I finally listened awhile back and dropped the connection. Then I realized in...
      • Kim Woodbridge: Hi Keith - I originally joined Facebook to find an old friend. I never expected to end up liking it as much as I do....
      • Kim Woodbridge: Hi Rajat - Thanks for the info! I'll try it out as soon as I get the chance....
      • Kim Woodbridge: Hi Timothy - I'm glad you agree - it seems that more people are using it. I'm not seeing quite as many FB updates that ...