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

      • Dennis Edell: Can we say claustrophobia?? Damn that parking vid really creeps me out; being a big guy and all. LOL .-= Dennis Edell´s ...
      • Juncai: Hi there, I was trying to add an image when i share to facebook. The code above for the link rel="image_src" href=”u...
      • Carla: Kim - I'm sorry for implying that anyone choosing (not because they cant pay or not eligible) to forgo insurance is irre...
      • Jamie Dunne: ~Hi Kim, Thanks for posting this - Great info ... Ive being digging through numerous apps and code trying to do th...
      • vered - blogger for hire: Thanks... and I love the photo. :) .-= vered - blogger for hire´s last blog .....
      • Kim Woodbridge: Hi Lisa Marie Mary - I think I remember that. And I never minded a mullet on Bono ;-)...
      • Kim Woodbridge: Hi Dot - We got about 2 feet - I think there was a lot more down your way. Schools were closed today, which I thought w...
      • Lisa Marie Mary: Yes, I know - I'm a mullet dork. I admit it. LOL I had my sweet little boys wear them for about their first 5/6 years -...