[wp-trac] [WordPress Trac] #37128: Introduce helper function `wp_list_sort()`
WordPress Trac
noreply at wordpress.org
Sun Oct 23 13:47:26 UTC 2016
#37128: Introduce helper function `wp_list_sort()`
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: swissspidy
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-dev-note has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Changes (by flixos90):
* keywords: has-patch needs-dev-note needs-unit-tests => has-patch needs-
dev-note has-unit-tests
Comment:
[attachment:37128.5.diff] adds a unit test
`test_wp_list_sort_preserve_keys()` to test the new `$preserve_keys`
functionality (using `uasort()`).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37128#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list