WordPress.org

Ideas

Idea: Add a way to delete revisions

  1. jabecker
    Member

    12345

    I love it that WP now includes revisions on posts. Along with auto-save, it's helped me out on more than one occasion.

    I can be wordy sometimes, and it might take me quite awhile to get a post just right. Plus I usually go through a preview/tweak/preview/tweak, etc., loop several times until I get it just right.

    The end result is that I end up with a large number of revisions bloating my database. I have a single-author blog. Once I've published my post I no longer need all of those revisions, but there's no way to get rid of them.

    I would like a way to:
    -- limit the number of revisions kept (say, to the most recent one or two)
    -- delete revisions that are no longer needed
    -- turn off versioning completely if I don't need it

    I know that this can be done via various plugins. But it seems strange that it's not included in the core WP code. It's sort of like giving users the ability to post, but never the ability to delete posts that were not needed or incorrect.

    Posted: 9 years ago #
  2. @mercime
    Volunteer Moderator

    12345

    I have to second jabecker. In a multiblogger install, the number of revisions is just too much - so yes, limit the number of revisions to most recent one or so is most welcome, dear developers :-)

    Posted: 9 years ago #
  3. hpguru
    Member

    12345

    Turn off revisions and delete it from mySQL.

    http://www.bloghonour.com/tutorials/how-to-delete-wordpress-post-revisions/

    Posted: 9 years ago #
  4. jabecker
    Member

    12345

    I know it can be deleted via SQL. That's what I do now. And there are multiple revision-handling plugins. But I think this should be included as a basic feature. It doesn't seem like this would be a big change.

    I would venture to say that there are WordPress users out there who are not comfortable running SQL against their database.

    Posted: 9 years ago #
  5. Douglas Karr
    Member

    12345

    Love this idea, one idea might be to set a number of days like Akismet has. Delete revisions after X days.

    Posted: 9 years ago #
  6. jabecker
    Member

    12345

    Oh, yes, coders4hire! I like that idea. That would work excellently well.

    Posted: 9 years ago #
  7. stevegepa
    Member

    12345

    Agree completely.

    I am amazed anyone would think of adding post revisions functionality without including a way of limiting or turning it off when it is not needed.

    Many WordPress databases will be suffering severe bloat because of this feature.

    Posted: 9 years ago #
  8. Jeff Chandler
    Inactive

    12345

    So I've finally been bitten by the post revisions bug. I've illustrated my thoughts on the matter here http://www.wptavern.com/wordpress-needs-to-revise-post-revisions

    I know their is a way to disable the revisions, their are SQL queries to delete them, and plugins which provide the options which should have been shipped with the post revision feature, but why on earth is their not a way for users in the backend of WordPress to configure the behaviour of this feature.

    the answer I've received quite a few times now is that because 90% of users won't use that UI and Post Revisions is an important feature, that adding the UI is not worth it.

    I guess we'll have to see how this grassroots campaign goes then.

    Posted: 9 years ago #
  9. alexleonard
    Member

    12345

    I think it would be very easy to add a "Clean Up" section to the Tools page.

    This section would have a few options, namely

    * Delete all post revisions
    * Clear spam comment queue

    As long as there was a decent explanation to the user of what this option meant I think it would be understandable by all.

    Another option would be to have the post revision presented as a select list with drop down options being: delete all, delete all bar most recent, delete all older than 1 month.

    Posted: 9 years ago #
  10. achellios
    Inactive

    12345

    Excellent idea. Especially given that if someone accidentally leaves an edit window open over the weekend, you have quite a few autosaved revisions crowding the database come Monday morning...

    Posted: 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    21 Votes
  • Status

    This is plugin territory

Tags