Disabling WordPress Post Revisions

Sometimes it takes awhile for things to sink in through my skull. WordPress added post revisions back in version 2.6. So after months of seeing those post revisions listed, and those messages about there being a newer version than what I had posted I decided to do something about them.

Since it’s introduction I haven’t used the post revision feature so the decision to turn it off was a no-brainer. This is done by adding the following line to the wp-config.php file: define('WP_POST_REVISIONS', false);

This doesn’t delete the existing post revisions but since that requires touching the MySQL database I decided to wait until I had a backup and the time to restore if things went bad.

I finally had the time this weekend I removed the old revisions. The information came from Andrei Neceulau and his instructions for removing the revisions in WordPress 2.6. While others have posted queries that remove the post revisions themselves, Andrei has a query that also removes the meta data for those posts.

I guess it wouldn’t hurt to leave the old post revisions in the database, but I don’t like the idea of this useless data clogging my database. As for the revision feature itself, I guess it could be useful in some cases but certainly not for me.

%d bloggers like this: