[wp-trac] [WordPress Trac] #43316: REST API: Support autosaves
WordPress Trac
noreply at wordpress.org
Tue Apr 24 13:31:49 UTC 2018
#43316: REST API: Support autosaves
-------------------------------------------------+-------------------------
Reporter: kraftbj | Owner: rmccue
Type: enhancement | Status: assigned
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):
> On a related note, if WP_REST_Autosaves_Controller subclasses
WP_REST_Revisions_Controller, is there a reason we're instantiating a new
object instead of calling the parent methods directly?
I think this is required to get the revisions controller set up properly,
although open to removing if thats possible... we leverage the instance
for permissions checks to avoid duplicating them. Without instantiating,
these checks didn’t work.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43316#comment:85>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list