[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Thu Feb 22 23:27:41 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):
Still TBD/TODO:
- I agree that passing a flag in the request (when saving or retrieving
autosaves) may not be the best. As far as I see the only 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. As there is
no `'autosave'` post_type in WordPress, this may be confusing.
- Add few more tests (perhaps) for edge cases.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list