[wp-trac] [WordPress Trac] #37128: Introduce helper function `wp_list_sort()`

WordPress Trac noreply at wordpress.org
Thu Aug 25 12:22:20 UTC 2016


#37128: Introduce helper function `wp_list_sort()`
----------------------------------------+------------------------------
 Reporter:  flixos90                    |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  General                     |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------
Changes (by flixos90):

 * keywords:  has-patch => has-patch needs-unit-tests


Comment:

 @swissspidy: Thanks for the feedback, good point. In
 [attachment:37128.2.diff] I introduce a new class `WP_List_Util` that
 takes care of that functionality. It also takes care of filtering and
 plucking, so the original functions only act as wrappers now. This way we
 have a clear structure for also performing multiple operations on one
 list.

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


More information about the wp-trac mailing list