WordPress.org

Ready to get started?Download WordPress

Forums

Delete Revisions (or better still, prevent them) (8 posts)

  1. mystifier
    Member
    Posted 6 years ago #

    Oh Jesus, is there a way of deleting old revisions of posts or better still, turning off the revision feature?!

    It may be useful to some but for me, it simply generates tens of unwanted database entries that are very irritating.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Why do you find them irritating? Just ignore them. They're only there for emergencies anyway, in case you mess up and need to revert a revision or two.

    Also:
    define('WP_POST_REVISIONS', false); in the wp-config.php disables them, I think.

  3. mystifier
    Member
    Posted 6 years ago #

    My site has over 300, sometimes long posts - the last thing I want is five or six versions of them; this would certainly exceed the phpadmin import filesize on my hosting package requiring that I split it.

    Thanks for the wp-config entry, I will try it after I have hand deleted tens of unwanted posts ;-)

  4. mystifier
    Member
    Posted 6 years ago #

    define('WP_POST_REVISIONS', false);

    Does not have the desired effect. I correct one character and it unconditionally saves a whole new version of a several hundred word post.

    At the moment, I am bitterly regretting upgrading :-(

  5. mystifier
    Member
    Posted 6 years ago #

    My apologies, define('WP_POST_REVISIONS', false); DOES work!

    I was confused by the new auto_save which happens regardless as a single 'revision'. I would rather not have this either because it will double my database but I can live with it. My main problem was that because of the nature of my site, large posts get many revisions.

    I don't like code hacks because they have to be re-made every update but I may hack auto_save to kill it.

  6. Anonymous
    Unregistered
    Posted 6 years ago #

    Oh thank goodness someone knows how to stop the revision, they are driving me mad, I'd like to see solution for the auto save as well, its almost the same, thanks people!

  7. Lester Chan
    Member
    Posted 6 years ago #

  8. andreineculau
    Member
    Posted 6 years ago #

    Fully delete revisions (+ associated terms, meta info)

    http://andreineculau.com/blog/2008/07/delete-wordpress-26-revisions/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.