[wp-trac] [WordPress Trac] #48530: Match REST API route by namespace before performing regex checks
WordPress Trac
noreply at wordpress.org
Tue Feb 11 03:20:19 UTC 2020
#48530: Match REST API route by namespace before performing regex checks
--------------------------------------+--------------------------
Reporter: TimothyBlynJacobs | Owner: kadamwhite
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.4
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses: performance
--------------------------------------+--------------------------
Changes (by kadamwhite):
* owner: (none) => kadamwhite
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"47260" 47260]:
{{{
#!CommitTicketReference repository="" revision="47260"
REST API: Match REST API routes on namespace before performing regex
checks.
Rule out groups of API endpoints by simple namespace string comparison to
reduce the number of regex checks necessary when matching a route.
Props TimothyBlynJacobs.
Fixes #48530.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48530#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list