wordpress-develop/tests/phpunit/tests/functions
Dominik Schilling (ocean90) ad25902a65 General: Introduce a wp_list_sort() helper function, v2.
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
2016-10-25 21:25:25 +00:00
..
allowedProtocols.php Add 'urn' to the list of URI protocols whitelisted by default. 2016-09-30 13:14:54 +00:00
canonical-charset.php Charset: Allow _canonical_charset() to handle mixed-case strings. 2016-10-17 23:53:20 +00:00
deprecated.php Wouldn't it be incredible if you could run Unit Tests without all of your uploads being indiscriminately blown away and your upload folder permissions being destroyed? 2014-07-12 07:08:15 +00:00
getArchives.php Unit Tests: 2016-08-27 08:35:16 +00:00
getWeekstartend.php Add tests for get_weekstartend(). 2016-05-26 15:47:52 +00:00
listFilter.php Revert [35949]. 2015-12-15 19:49:43 +00:00
maybeDeclineDate.php I18N: Add tests for wp_maybe_decline_date(). 2016-07-05 16:09:01 +00:00
numberFormatI18n.php Tests: Add unit tests for number_format_i18n(). 2016-03-01 21:19:20 +00:00
pluginBasename.php Plugins: In plugin_basename() sort plugin paths before resolving symlinks. 2016-07-06 09:44:58 +00:00
referer.php Correct some more tests which were using example.org instead of WP_TESTS_DOMAIN. 2016-02-26 00:25:10 +00:00
removeQueryArg.php Add tests for remove_query_arg(). 2016-06-03 04:30:23 +00:00
sizeFormat.php General: Return "O B" when passing 0 to size_format(). 2016-07-05 10:35:24 +00:00
wpListUtil.php General: Introduce a wp_list_sort() helper function, v2. 2016-10-25 21:25:25 +00:00
WpValidateBoolean.php Ignore case when checking string 'false' in wp_validate_boolean(). 2014-11-03 15:54:42 +00:00