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

WordPress Trac noreply at wordpress.org
Fri Feb 23 01:10:05 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 adamsilverstein):

 > alternative is to set post_type: 'autosave' and then to "convert" it to
 the proper post_type = 'revision' as soon as the request is received

 Interesting idea - this at least works within an existing field.

 wondering if in the schema somewhere we have or can add a 'supports
 autosave' flag so clients know a post type supports autosaves (might be
 there already?).... also thinking we could add a helper to the wp.api
 client so you could do `post.autosave();` and handle the status change
 internally.

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


More information about the wp-trac mailing list