• 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 - 16 through 30 (of 58 total)
  • Hello esmi – I appreciate your taking time to reply, but I understand people are still having trouble with that plugin that you referenced.

    However — and more importantly — if you’ll note from earlier posts both ashfame and I are looking for solution that does NOT involve a plugin.

    What I’m looking for is the correct solution, which is to make the define statement in the wp-config file behave is it is supposed to, which is to override the same statement in the wp-settings.php file. I’ve tried inserting it both before and after the call to include wp-settings.php, neither works.

    So my question remains – why is wp-config.php not doing what it’s supposed to do?

    I have the same issue, I want to get rid of post revisions without plugins, and

    define(‘WP_POST_REVISIONS’, false);

    is not working anymore

    wp 2.8.3 doesn’t fix the issue.

    i’ve the same porblem, added define(’WP_POST_REVISIONS’, false); in wp-config.php but the revisions are created the same.

    i’m using the last wp 2.8.3

    The problem remains as of WordPress 2.8.4

    I am also having this issue on WP 2.8.4. It’s really obnoxious because I use the Codex-recommended Permalink structure of domain.com/%post_id%/%postname%/. But with all these useless revisions that I instructed WP to disable (via wp-config.php), my Post-IDs are being driven up at a furious rate! I only have 6 posts but already my next Post-ID is nearly #40!

    This works fine for me on a fresh install of WordPress 2.8.4

    Where are you seeing revisions appear?

    With revisions disabled there will still possibly be an autosave revision for each post as this is a separate feature.

    @westi
    I am not confusing it with the autosave feature. I can see the Post ID increasing more than what it should. That means the revisions are being generated and I use a post revision delete plugin which also shows up my edited posts.

    On an existing 2.8.4, put define('WP_POST_REVISIONS', false); in wp-config.php and revisions stop getting created.

    Delete the define('WP_POST_REVISIONS', false); from wp-config.php and edited post and it created a revision as expected. The revision record in wp_posts has a post_status of “inherit”.

    Wonder if you are using the correct wp-config.php or if a plugin is causing to problem.

    Fresh install (2.8.4) and I too am seeing post revisions even with define('WP_POST_REVISIONS', false); being added to the end of wp-config.php

    When I open a page, make a change and save, at the bottom of the edit page is a box listing past page revisions. Every new change and save add’s another to the list.

    I did have four plugin’s installed:

    • All in One SEO Pack
    • Contact Form 7
    • NextGEN Gallery
    • Secure WordPress

    I even tried disabling all plugins, going back to a page and making a change and saving. Still added a post revision.

    I too am seeing post revisions even with define(‘WP_POST_REVISIONS’, false); being added to the end of wp-config.php

    That’s the problem–end of wp-config.php.

    I put the define right after define('DB_COLLATE', '');

    The key is, it has to go before this line:

    require_once(ABSPATH . 'wp-settings.php');

    I have it before that line only.

    define('WP_POST_REVISIONS', false );
    
    /* That's all, stop editing! Happy blogging. */
    
    /** WordPress absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
            define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

    I will try after the DB_COLLATE line

    No use of adding the line after DB_COLLATE line. Post revisions are still being created.

    We got a team of editors and unwanted autosave blowing DB as a balloon.

    @michaelh

    define(‘WP_POST_REVISIONS’, false); at 2.8.4 doesn’t work as we speak.

    Period.

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