WordPress/wp-includes/rest-api
Joe Hoyle a07988c1c5 REST API: Provide better method for generating CURIEs
In [36533] CURIEs were added to the API responses for the link relation URIs, this makes
it a lot easier for clients to look up links by relation. That patch was functional, but
broke on edge cases such as embedded responses and collection items with links in the items.

This patch instead takes a less obtrusive approach by creating a new `get_compact_response_links`
to compliment `get_response_links` making both old and new functionality available.

Also the regex for curie relations has been relaxed to `.+` as rel names can have any uri-valid charector in it.

Fixes #34729.


Built from https://develop.svn.wordpress.org/trunk@37041


git-svn-id: http://core.svn.wordpress.org/trunk@37008 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-03-22 00:16:27 +00:00
..
class-wp-rest-request.php Docs: Improve parameter description syntax in the hook doc for the `rest_request_from_url` filter, introduced in [36673]. 2016-03-16 16:52:27 +00:00
class-wp-rest-response.php Docs: Use a third-person singular verb in the DocBlock summary for `WP_REST_Response::get_curies()`, introduced in [36533]. 2016-03-16 16:54:26 +00:00
class-wp-rest-server.php REST API: Provide better method for generating CURIEs 2016-03-22 00:16:27 +00:00