[wp-trac] [WordPress Trac] #53988: remove duplicate code in wp_list_filter()

WordPress Trac noreply at wordpress.org
Mon Aug 23 23:37:50 UTC 2021


#53988: remove duplicate code in wp_list_filter()
-------------------------+---------------------
 Reporter:  pbearne      |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.9
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+---------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 5.9


Comment:

 Thanks for the PR!

 It looks like `wp_filter_object_list()` used to wrap `wp_list_filter()`
 before [38928] / #37128.

 So I think I would prefer reinstating that, as is looks like doing it that
 other way around would have more unnecessary `if ( $field )` checks.

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


More information about the wp-trac mailing list