[wp-trac] [WordPress Trac] #48530: Match REST API route by namespace before performing regex checks

WordPress Trac noreply at wordpress.org
Fri Feb 21 14:47:26 UTC 2020


#48530: Match REST API route by namespace before performing regex checks
--------------------------------------+--------------------------
 Reporter:  TimothyBlynJacobs         |       Owner:  kadamwhite
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  5.4
Component:  REST API                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by dlh):

 I'd like to also suggest that this ticket could use a dev note, which I'd
 be happy to draft. The `wp_rest_server_class` filter allows developers to
 use a custom extension to `WP_REST_Server`, and classes that have
 overloaded `get_routes()` (as we do on some of our projects) will start to
 see a PHP warning because the signature is no longer compatible.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48530#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list