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

WordPress Trac noreply at wordpress.org
Thu Feb 22 12:54:01 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  |     Focuses:  rest-api
-------------------------------------+-----------------------

Comment (by azaozz):

 @adamsilverstein did you have a chance to test
 [/attachment/ticket/43316/43316.patch 43316.patch]?

 Don't think we need separate controller for autosaves. They are standard
 revisions, the only difference is when saving they are either created or
 updated.

 Planning to add the same flag `is_autosave: true` to
 `WP_REST_Revisions_Controller::get_item()` and
 `WP_REST_Revisions_Controller::get_items()` for explicitly requesting
 autosaves.

 Also see
 https://github.com/WordPress/gutenberg/pull/4218#issuecomment-367643571.

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


More information about the wp-trac mailing list