[wp-trac] [WordPress Trac] #42500: Enable Revisions when there is 1

WordPress Trac noreply at wordpress.org
Fri Nov 10 08:30:10 UTC 2017


#42500: Enable Revisions when there is 1
-----------------------------+------------------------------
 Reporter:  garrett-eclipse  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Revisions        |     Version:  4.9
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:  administration
-----------------------------+------------------------------

Comment (by garrett-eclipse):

 Thanks @dd32,

 I think the main issue I'm having is with pages that've existed for a
 while. We launched and used WP-Optimize to purge auto-saves and revisions.
 And while attempting to demonstrate revisions they didn't appear for pages
 we knew there was revisions for. And checking the database we could see
 multiple there, none of which were autosaves.

 So the link/metabox wasn't displayed when there was a revision to compare
 against. It's too bad autosave and revision aren't unique post_types, is
 there another way to easily look up number of actual revisions and instead
 use it to gauge against? As in many cases there won't be an autosave
 created as you're able to disable that by extending the autosave interval.

 I feel as soon as there's a valid revision then revision functionality
 should be made available, so if wp_get_post_revisions needs to be supplied
 some args to filter auto-saves from it's results and have the check be
 against only revisions that would have saved my tutorial.

 During my tutorial I had just messed some content and wanted to roll back
 but wasn't able to live. Had to find it in the DB to restore, and then
 only after testing did I realize if I'd pushed a second revision in it
 would be available.

 We also regularly clear the DB of autosaves/revisions so for our clients
 when they're editing there isn't a revision until they save, but if they
 break something to them they have no ability to roll back. For now I'll
 inform them to save a second time to generate an additional revision so
 they can get the GUI and rollback to the original state of the page.

 Thank you

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42500#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list