[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Fri Feb 23 10:29: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 azaozz):
> wondering if in the schema somewhere we have or can add a 'supports
autosave' flag so clients know a post type supports autosaves
Was looking at that too. But it would mean we will have to add 'autosave'
to `post_type_supports()` too, right? There is post_type_supports
'revision' already, the thing is that even if CPTs don't support
revisions, we still seem to do autosaves for them. Also autosaves (with or
without creating a revision) is somewhat basic functionality, not sure if
we need special flag to enable it.
> thinking we could add a helper to the wp.api client
Yeah, think that would be great. Both for auto saving and retrieving
autosaves.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list