[wp-trac] [WordPress Trac] #39473: get_routes() called multiple times within single REST request causing the rest_endpoints() filter to also fire more than once
WordPress Trac
noreply at wordpress.org
Tue Jan 17 22:01:36 UTC 2017
#39473: get_routes() called multiple times within single REST request causing the
rest_endpoints() filter to also fire more than once
------------------------------------+------------------------------
Reporter: ruud@… | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses:
------------------------------------+------------------------------
Comment (by jnylen0):
The getter/setter functions should be public in case other code needs to
manipulate the cached route map.
I think we can resolve the remaining naming issues here by calling the
variable inside the method `$route_map` instead of `$endpoints`. Think of
it this way: `$endpoints` is the raw endpoints and `$route_map` is the
parsed and sanitized map from a regex to an endpoint.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39473#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list