[wp-trac] [WordPress Trac] #37128: Introduce helper function `wp_list_sort()`
WordPress Trac
noreply at wordpress.org
Thu Aug 25 11:28:49 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 | Focuses:
-------------------------+------------------------------
Comment (by swissspidy):
Using globals is bad, using temporary globals seems even worse. With
initiatives like #37699, we should avoid introducing new globals.
How would this look with a helper class for plucking, filtering and
sorting? Or maybe `create_function()` (sigh)?
Introducing `wp_list_sort()` without using it in core is not ideal, but an
extensible helper class for interacting with arrays and objects might be
more convincing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37128#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list