[wp-trac] [WordPress Trac] #39696: REST API: Filter which links get embedded when passing the ?_embed query parameter
WordPress Trac
noreply at wordpress.org
Sat Jan 28 08:31:02 UTC 2017
#39696: REST API: Filter which links get embedded when passing the ?_embed query
parameter
-------------------------------------------------+-------------------------
Reporter: rheinardkorf | Owner:
Type: enhancement | adamsilverstein
Priority: normal | Status: assigned
Component: REST API | Milestone: Awaiting
Severity: normal | Review
Keywords: 2nd-opinion needs-refresh needs- | Version: 4.7.1
unit-tests | Resolution:
| Focuses: rest-api
-------------------------------------------------+-------------------------
Comment (by rheinardkorf):
Attached a new patch that includes the functionality as requested. Also
included unit tests `test_get_item__embed()` that tests the scenarios.
Because of the issue mentioned earlier with the server relying on $_GET
I've had to set $_GET within the tests. This is not ideal and needs to be
addressed if the server gets updated (perhaps calls for another ticket).
Could this patch please be reviewed?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39696#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list