[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
Sun Oct 25 03:04:21 UTC 2020
#39473: get_routes() called multiple times within single REST request causing the
rest_endpoints() filter to also fire more than once
-------------------------------------------------+-------------------------
Reporter: ruud@… | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-refresh needs-unit-tests | Focuses:
good-first-bug |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):
* keywords: has-patch dev-feedback => needs-refresh needs-unit-tests good-
first-bug
Comment:
I don't think we should expose the ability to overwrite the internal
request map entirely, I think we should change this to something more
specific that only allows for clearing it out. Perhaps
`::clear_route_map`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39473#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list