[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:46:19 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:
--------------------------------------+------------------------
Changes (by whyisjake):
* owner: (none) => whyisjake
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"47842" 47842]:
{{{
#!CommitTicketReference repository="" revision="47842"
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.
Fixes #49749.
Props TimothyBlynJacobs, skarabeq, afercia.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49749#comment:22>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list