Go to file
Joe Hoyle 2399173712 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.



git-svn-id: https://develop.svn.wordpress.org/trunk@37041 602fd350-edb4-49c9-b593-d223f7449a82
2016-03-22 00:15:49 +00:00
src REST API: Provide better method for generating CURIEs 2016-03-22 00:15:49 +00:00
tests Customize: Require opt-in for selective refresh of widgets. 2016-03-21 21:58:02 +00:00
tools/i18n i18n tools: In StringExtractor don't strip slashes from URLs. 2016-02-29 20:44:31 +00:00
.editorconfig
.gitignore Remove accidental .svn addition to .gitignore 2015-12-12 18:26:22 +00:00
.jshintrc Build: Prevent non-breaking spaces from accidentally being inserted into JavaScript files. 2015-11-12 12:04:55 +00:00
.travis.yml Remove PHP 7 from allowed failures list 2015-11-12 21:44:24 +00:00
Gruntfile.js Build Tools: Rename the precommit:core task to precommit:base for clarification. 2016-03-10 20:13:29 +00:00
package.json Bump grunt-contrib-qunit ~0.7.0 → ~1.1.0 2016-03-16 17:53:51 +00:00
phpunit.xml.dist Unit Tests: add SpeedTrapListener to phpunit/includes and add the config node to phpunit.xml.dist. 2015-10-16 00:27:28 +00:00
wp-cli.yml Remove debug mode from WP-CLI by default, as it now outputs too much debugging information to be of use during normal development. 2015-11-28 18:36:06 +00:00
wp-config-sample.php
wp-tests-config-sample.php Unit Tests: Correct comment in wp-tests-config-sample.php. 2016-01-21 20:24:12 +00:00