mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
In addition to `wp_list_filter()` for filtering a list of objects, and `wp_list_pluck()` for plucking a certain field out of each object in a list, this new function can be used for sorting a list of objects by specific fields. These functions are now all contained within the new `WP_List_Util()` class and `wp_list_sort()` is used in various parts of core for sorting lists. This was previously committed in [38859] but got reverted in [38862] and [38863]. To fix the previous issues, `wp_list_sort()` supports now an additional argument to preserve array keys via `uasort()`. Props flixos90, DrewAPicture, jorbin. Fixes #37128. git-svn-id: https://develop.svn.wordpress.org/trunk@38928 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| allowedProtocols.php | ||
| canonical-charset.php | ||
| deprecated.php | ||
| getArchives.php | ||
| getWeekstartend.php | ||
| listFilter.php | ||
| maybeDeclineDate.php | ||
| numberFormatI18n.php | ||
| pluginBasename.php | ||
| referer.php | ||
| removeQueryArg.php | ||
| sizeFormat.php | ||
| wpListUtil.php | ||
| WpValidateBoolean.php | ||