[wp-trac] [WordPress Trac] #54015: Unable to pass _embed param to enveloped REST API requests
WordPress Trac
noreply at wordpress.org
Mon Nov 1 09:45:57 UTC 2021
#54015: Unable to pass _embed param to enveloped REST API requests
----------------------------------------+-----------------------------
Reporter: spacedmonkey | Owner: spacedmonkey
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Future Release
Component: REST API | Version: 5.4
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: rest-api
----------------------------------------+-----------------------------
Comment (by spacedmonkey):
Replying to [comment:4 johnbillion]:
> Can we get a test for this?
I had a look into this and is not easy to add a test here. Lots have to be
mocked this change is deeply embed in the `serve_request` method. I was
thinking about somehow exacting the logic, to make easier to test.
Thoughts @johnbillion ?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54015#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list