[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Fri Mar 23 04:03: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 needs-unit- | Focuses: rest-api
tests |
-------------------------------------------------+-------------------------
Comment (by adamsilverstein):
In [attachment:43316.7.diff]
* If the autosave content is significantly different, create a revision. I
used a value of 250 which i think is around a paragraph, i realized a
percent might not work, for a very large document for example a revision
would only get made aver a huge change. one save per paragraph seems about
right, i'd like some feedback though.
* Add a filter `wp_create_revision_for_api_autosave` enabling control of
the revision creation behavior
* For the collection endpoint, return all the autosaves, not just those
belonging to to the current user.
* Regenerate fixtures.
@azaozz what else remains?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list