Jake Spurlock bdbfcefbcb REST API: Ensure proper namespacing when registering routes.
The PR will corerce routes that have a leading slash and throwing a _doing_it_wrong notice while ensuring a proper namespace.

This brings the changes from [47842] to the 5.4 branch.

Fixes #49749.
Props TimothyBlynJacobs, skarabeq, afercia, skithund.


git-svn-id: https://develop.svn.wordpress.org/branches/5.4@47843 602fd350-edb4-49c9-b593-d223f7449a82
2020-05-22 20:58:50 +00:00
..