[wp-trac] [WordPress Trac] #56804: More readable and faster check for array of arrays in register_rest_route()

WordPress Trac noreply at wordpress.org
Thu Oct 13 16:07:19 UTC 2022


#56804: More readable and faster check for array of arrays in register_rest_route()
-------------------------------------------+--------------------------
 Reporter:  TobiasBg                       |       Owner:  (none)
     Type:  enhancement                    |      Status:  new
 Priority:  normal                         |   Milestone:  6.1
Component:  REST API                       |     Version:  trunk
 Severity:  normal                         |  Resolution:
 Keywords:  has-patch commit dev-feedback  |     Focuses:  performance
-------------------------------------------+--------------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch commit dev-feedback
 * milestone:  6.1.1 => 6.1


Comment:

 Thanks for the ticket! The suggested code does look better to me in terms
 of readability and performance.

 I believe this can be included in 6.1 RC2.

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


More information about the wp-trac mailing list