[wp-trac] [WordPress Trac] #35803: Introduce rest_get_request_from_url() for getting a WP_REST_Request object from a provided URL
WordPress Trac
noreply at wordpress.org
Thu Feb 11 21:58:34 UTC 2016
#35803: Introduce rest_get_request_from_url() for getting a WP_REST_Request object
from a provided URL
---------------------------------------------------+------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.5
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests dev-feedback | Focuses:
---------------------------------------------------+------------------
Comment (by danielbachhuber):
@joehoyle @rmccue @rachelbaker Feedback on this when you have a moment.
Couple of pieces I didn't get to in this first patch:
1. When the `$url` is to a different domain, we should return `false`
instead of creating a `WP_REST_Request` object.
2. Needs to be hooked into `WP_REST_Server::embed_links()` and make sure
we have sufficient test coverage.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35803#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list