[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 07:58:59 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 ruud@…):
Hi Ryan and James,
Thanks for having a look at this patch.
What is your opinion about introducing a new variable $route_map, instead
of re-using $endpoints?
I this patch I did not use $endpoints with a test for it being empty
because it is not, it gets initialized with the default root endpoint.
I have time to fix any code for this patch today, so let me know.
Thanks,
Ruud
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39473#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list