Posted on 2 March, 2009 By 52 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 too 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:

Posted In : WordPress Tips

Did you enjoy this article? I can assist you with your WordPress or Facebook project. Contact me and I will provide you with an estimate. You can also connect with me on Facebook or follow me on Twitter.




StudioPress Premium WordPress Themes

52 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> .

CommentLuv badge

About

Kim Woodbridge is an accomplished Information and Technical Consultant specializing in the entire implementation of a WordPress based website including installation, theme design, upgrades, unique customizations and ongoing site maintenance.

Recent Comments

    • Marbella: Hi Kim, To get a Valentine card from a child who has been working with it for a few days means so much. They show their...
    • Gaynell M. Jones: Hi Kim, Wow, This is amazing! How can you read this much and blog at the same time?.. Well I'm not that a reader myse...
    • Gaynell M. Jones: Wow! This are cute! I will creat this for my darling. Thanks for the sharing this wonderful Idea....
    • Cmack: I found this website that shows how to have thumbnails link to another page by using the alt/title info in the gallery. ...
    • Lily Rose: This is so cute! I love it when people make their day and do the same for their close ones...

Wordpress Services

  • Installation, upgrades and maintenance
  • Conversion of existing html and css templates
  • Theme and plugin recommendations
  • CSS customizations
  • Troubleshooting and tweaks for unique situations
  • Customization for individual blogging goals and needs
  • Training and advice