• Hello there!
    I am having issues in switching the post revisions feature off. I tried defining the WP_POST_REVISIONS as false and even 0 but it didn’t work for me. Post Revisions are still being generated. Looks like a sorta bug too me. Am I doing something wrong here?

Viewing 15 replies - 1 through 15 (of 58 total)
  • Couple of options and some information on turning off WordPress post and page revisions.

    If you’re intent on editing a core file it should be define('WP_POST_REVISIONS', false);. Was that how you defined it?

    Personally, I use the plugin option.

    Yes I did that. I have tried both define(‘WP_POST_REVISIONS’, false); and define(‘WP_POST_REVISIONS’,0); but none of them worked out for me. I don’t want to use a plugin for this.

    Any solutions without using a plugin?

    Have you actually browsed the wp_posts table and seen revisions still being generated in your database after adding that code to wp-config.php?

    If I get a chance this week I’ll disable my revision control plugin and try adding that line to my wp-config.php to see if it works for me.

    I didn’t peek into the DB but I used a plugin to delete the revisions which were still being generated. They were being generated, thats for sure.

    BUMP

    Please refrain from bumping as per Forum Rules

    Isn’t it weird that I can’t switch it off? Please help WP geeks.

    Try the Revision Control plugin:

    https://dd32.id.au/wordpress-plugins/revision-control/

    Works like a charm for me.

    This plugin doesn’t work either. It says “Cannot load revision-control.”
    What harm does it do other than increasing the db size in terms of performance?

    At 2.8 this works in wp-config.php:

    define('WP_POST_REVISIONS', false );

    At 2.8, this plugin, after setting Revisions to Disabled for both posts and pages, works:
    https://www.ads-software.com/extend/plugins/revision-control/

    You asked:

    What harm does it do other than increasing the db size in terms of performance?

    Not much.

    I also have this problem, and using
    define('WP_POST_REVISIONS', false );
    definitely does NOT work – revisions are still being generated. (as earlier poster noted, I also tried 0 instead of false, still didn’t work)

    I also do NOT want to use a plugin to do something that should be able to be accomplished simply using this wp-config.php file – this define statement above SHOULD work but is not…..so it does look like a 2.8.1 bug – any other suggestions (and please don’t say a plugin, I don’t like to use plugins to fix a bug or do minor tasks that can easily be handled without a plugin).

    This really should be an option under the Settings – allowing us to turn off this feature or if left on, choose how many revisions to keep – 0 to all……

    @michaelh
    I already have that in my config file. What else I can do?

    @ashfame – I had to change the same “define” statement in my wp-settings.php file (in same root as wp-config.php), in my 2.7.1 version it’s on line 495, HOWEVER this is not a good solution as it would need to be repeated every time you upgrade the WP version. And really putting it in wp-config is supposed to override wp-settings but it isn’t.

    I’ve been hearing and reading the same complaints about 2.8.1 (not sure about 2.8.2) so it looks like this bug is still around.

    Post revisions should be a user-definable option, but until it is there should be an easy and reliable way to disable it.

    I’ve just installed a 2.8.2 version (clean) for a new site, and this bug is still around.

    I’ve got the correct statement in my wp-config.php file
    define(‘WP_POST_REVISIONS’, false);

    But revisions are still being created and kept….aaarrrgh!

    Is there any way to turn this off without having to modify wp-settings.php (which would need to be repeated for each upgrade)?

    Have a look at the Revision Control plugin.

Viewing 15 replies - 1 through 15 (of 58 total)
  • The topic ‘Unable to switch off post revisions’ is closed to new replies.