[wp-trac] [WordPress Trac] #41159: REST API: Add a way to determine if a request is an embedded "sub-request"
WordPress Trac
noreply at wordpress.org
Wed Jul 12 21:00:42 UTC 2017
#41159: REST API: Add a way to determine if a request is an embedded "sub-request"
------------------------------------------+-----------------------------
Reporter: jnylen0 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+-----------------------------
Comment (by jnylen0):
Found a bug in our current approach today: `rest_request_before_callbacks`
will be triggered (perhaps multiple times) for every `rest_do_request`
call, but there is no filter to use at the *end* of this call chain. So
any usage of `rest_do_request` will probably break this code.
The cleanest solution I can think of is as described in the ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41159#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list