[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves

WordPress Trac noreply at wordpress.org
Sun Mar 25 00:52:06 UTC 2018


#43316: REST API: Support autosaves
-------------------------------------------------+-------------------------
 Reporter:  kraftbj                              |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.0
Component:  REST API                             |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:  rest-api
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 In 43316.10.diff:
 - Attempt to fix routes.
 - Fix bug trying to create revision of a revision.
 - Fix and Move the logic for creating a significantly different revision
 when autosaving.
 - Also create that revision when overwriting a draft post (most
 important).
 - Added the tests from 43316.1.patch.

 Still TODO/TBD:
 - The autosave route can be better? Currently it looks like
 `/wp/v2/posts/123/autosaves/123` where `123` for both `/posts/` and
 `/autosaves/` is the actual post_ID and have to match.
 - Moar tests, especially testing the autocreated "significantly different"
 revision.

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


More information about the wp-trac mailing list