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

WordPress Trac noreply at wordpress.org
Fri Oct 19 13:48:45 UTC 2018


#43316: REST API: Support autosaves
---------------------------------------------+-----------------------
 Reporter:  kraftbj                          |       Owner:  rmccue
     Type:  enhancement                      |      Status:  closed
 Priority:  normal                           |   Milestone:  5.0
Component:  REST API                         |     Version:
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  rest-api
---------------------------------------------+-----------------------
Changes (by danielbachhuber):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43768" 43768]:
 {{{
 #!CommitTicketReference repository="" revision="43768"
 REST API: Introduce Autosaves controller and endpoint.

 * Adds `WP_REST_Autosaves_Controller` which extends
 `WP_REST_Revisions_Controller`.
 * Autosaves endpoint is registered for all post types except `attachment`
 because even post types without revisions enabled are expected to
 autosave.
 * Because setting the `DOING_AUTOSAVE` constant pollutes the test suite,
 autosaves tests are run last. We may want to improve upon this later.

 Props adamsilverstein, aduth, azaozz, danielbachhuber, rmccue.
 Fixes #43316.
 }}}

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


More information about the wp-trac mailing list