[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Sun Mar 11 15:43:08 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 adamsilverstein):
@azaozz Thanks for the feedback, I will work on addressing these items
soon. Couple of questions...
For #4 currently i return the current users 'autosaves' (there is only
ever one). I can see the use case for wanting all autosaves, then you pass
author_id to find your own autosave, right?
For #5 it should return the autosave or an error. Thinking about this
more, I don't think the autosave controller should update the post, even
for drafts. the client can decide whether to issue a post update or create
an autosave based on the post status - this seems like a client
responsibility.
In [attachment:43316.5.diff] I added a suite of unit tests matching what
we have for revisions. I started working on enabling EDITABLE support (so
you could 'update' an autosave), realizing now we don't have that for
revisions so going to remove.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list