Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #39473, comment 9


Ignore:
Timestamp:
01/12/2023 11:53:37 PM (3 years ago)
Author:
mreishus
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39473, comment 9

    initial v1  
    1  I'm happy to revive this; `get_routes()` in the meantime now has a parameter: `get_routes( $route_namespace )`. I came up with an idea in the attached patch above, but it doesn't feel quite right. Any ideas?
     1I'm happy to revive this; `get_routes()` in the meantime now has a parameter: `get_routes( $route_namespace )`. I came up with an idea in the attached patch above, but it doesn't feel quite right. Any ideas?
    22
    33This patch also doesn't solve the problem of `get_routes()` being called more than once, because the `$route_namespace` optimization was applied to the main callsite of `get_routes()`, but not the others. But that could be tackled as a second step.