Go to file
Sergey Biryukov 44c58d1a12 REST API: JavaScript client - improve route discovery for custom namespaces.
Fix parsing of custom namespace routes. Transform class names, removing dashes and capitalizing each word/route part so a route path of `widgets/recent-posts` becomes a collection with the name `WidgetsRecentPosts`. Correct parent route part when routes are longer than expected, reversing parse direction.

Props westonruter, jazbek, adamsilverstein, jnylen0.
Merges [40074] and [40109] to the 4.7 branch.
Fixes #39561.

git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40117 602fd350-edb4-49c9-b593-d223f7449a82
2017-02-24 22:47:47 +00:00
src REST API: JavaScript client - improve route discovery for custom namespaces. 2017-02-24 22:47:47 +00:00
tests REST API: JavaScript client - improve route discovery for custom namespaces. 2017-02-24 22:47:47 +00:00
tools/i18n
.editorconfig
.gitignore
.jshintrc
.travis.yml Build/Test Tools: Remove PHP 7.1 from allowed failures 2016-12-02 06:43:46 +00:00
Gruntfile.js REST API: Add QUnit tests for wp-api.js and PHPUnit fixture generation. 2017-02-24 22:33:05 +00:00
npm-shrinkwrap.json Build: Remove fsevents from npm-shrinkwrap.json 2016-11-29 04:02:23 +00:00
package.json Post-4.7.2 version bump for 4.7 branch. 2017-01-26 21:57:54 +00:00
phpunit.xml.dist
wp-cli.yml
wp-config-sample.php
wp-tests-config-sample.php