[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
Mon Jul 10 07:33:11 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 rmccue):

 Right now, we have `context=embed`, but that's not guaranteed to be set
 (it can be overridden if the URL contains a `context` parameter).

 What's the rationale for adding this? Responses should be context-free
 generally, so any variation should be included in the request data (hence,
 `context=embed`).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41159#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list