[wp-trac] [WordPress Trac] #49749: Registering rest routes with a slash-prefixed namespace give inconsistent results
WordPress Trac
noreply at wordpress.org
Fri May 22 20:59:05 UTC 2020
#49749: Registering rest routes with a slash-prefixed namespace give inconsistent
results
--------------------------------------+------------------------
Reporter: skarabeq | Owner: whyisjake
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4.2
Component: REST API | Version: 5.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Comment (by whyisjake):
In [changeset:"47843" 47843]:
{{{
#!CommitTicketReference repository="" revision="47843"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49749#comment:23>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list