Archive for WordPress Tips

bits-and-pieces category image Post Revisions Off

One of the latest features of WordPress is the inclusion of post revisions [since about version 2.6 if memory serves me correctly] and whilst I can see the use of it in some instances, personally, I would rather it was not automatically enabled.

Basically, it is an autosave function and I find that it gets in my way rather than helps me in my writing. There is always going to be that instance when i wish it was there I guess, but having not had it in place for so long, i just don’t need it now.

So, how to disable it? It would be nice if there was a tickbox which would allow for this, but unfortunately there isn’t. So it involves a simple piece of code being added to your wp-config.php file.

To do this, you need a text editor [no. not Notepad] and you simply add the following line of code to the file [directly under the other lines of 'define' already in place].

define(‘WP_POST_REVISIONS’, false);