wordpress-develop/tests/phpunit/tests/customize
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
..
control.php Customize: Allow page stubs to be created via dropdown-pages controls in the Static Front Page section. 2016-10-25 06:30:27 +00:00
custom-css-setting.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
manager.php General: Introduce a wp_list_sort() helper function, v2. 2016-10-25 21:25:25 +00:00
nav-menu-item-setting.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
nav-menu-setting.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
nav-menus.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
panel.php Unit Tests: after [35225], make factory a method/getter on WP_UnitTestCase and add magic methods for BC for every plugin that is extending WP_UnitTestCase and accessing the $factory instance prop. 2015-10-17 18:02:16 +00:00
partial.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
section.php Unit Tests: 2016-08-27 08:35:16 +00:00
selective-refresh-ajax.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
selective-refresh.php Tests: Use a minimal theme for tests. 2016-10-21 11:02:37 +00:00
setting.php Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00
widgets.php Install: Update sidebars_widgets option for Twenty Seventeen to match its three sidebars. 2016-10-25 19:59:31 +00:00