mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-25 02:27:50 +01:00
a07988c1c5
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 |
||
---|---|---|
.. | ||
class-wp-rest-request.php | ||
class-wp-rest-response.php | ||
class-wp-rest-server.php |