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

WordPress Trac noreply at wordpress.org
Sun Oct 2 09:13:18 UTC 2016


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

Comment (by swissspidy):

 Replying to [comment:13 flixos90]:
 > Replying to [comment:12 swissspidy]:
 > > [attachment:37128-usage.2.diff] should also remove/deprecate the now
 unneeded sorting functions in these files (dead code).
 >
 > Deprecate or remove? I would assume we can remove the ones that are
 private/protected (although they could theoretically be used by someone
 extending a class).

 Private methods could be removed straight away (not inherited), but at
 first glance it looks like these are only public methods. So maybe
 deprecating them first before removing them early in the next release.

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


More information about the wp-trac mailing list