wordpress-develop/tests/phpunit/tests/customize
Weston Ruter f26ccf6fac Customize: Update server-sent setting validation notifications as changes are entered.
Send back setting validities with full refreshes and selective refreshes so that invalid settings can have notifications displayed immediately before attempting save, and so that these notifications can be cleared as soon as the input is corrected.

* Splits out JS logic for listing controls into separate methods  `wp.customize.Setting.prototype.findControls()` and `wp.customize.findControlsForSettings()`.
* Adds a `setting` property to the `data` on notifications added to controls that are synced from their settings.
* Adds `selective-refresh-setting-validities` message sent from preview to pane.
* Changes `WP_Customize_Manager::validate_setting_values()` to return when settings are valid as well as invalid.
* Adds `WP_Customize_Manager::prepare_setting_validity_for_js()`.
* Add setting validities to data exported to JS in Customizer Preview and in selective refresh responses.

Fixes #36944.


git-svn-id: https://develop.svn.wordpress.org/trunk@37700 602fd350-edb4-49c9-b593-d223f7449a82
2016-06-14 19:16:54 +00:00
..
control.php Customize: Allow controls to be registered without any associated settings. 2016-02-24 18:27:45 +00:00
manager.php Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:16:54 +00:00
nav-menu-item-setting.php Customize: Ensure that wp_setup_nav_menu_item filter applies consistently on nav_menu_item setting values. 2016-05-10 06:40:48 +00:00
nav-menu-setting.php Customize: Prevent dropping backslashes from input on general settings and settings for nav menus and some widgets. 2016-02-23 01:01:43 +00:00
nav-menus.php Customize: Fix regressions and harden implementation of selective refresh for nav menus. 2016-03-09 00:08:51 +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 Customize: Define params on WP_Customize_Partial::render_callback() for the sake of subclasses overriding this method. 2016-03-02 06:08:38 +00:00
section.php Unit Tests: better fixtures for Tests_Meta_Slashes and Tests_WP_Customize_Section. 2015-10-17 21:28:43 +00:00
selective-refresh-ajax.php Customize: Update server-sent setting validation notifications as changes are entered. 2016-06-14 19:16:54 +00:00
selective-refresh.php Customize: Skip exporting partials to client and handling rendering requests if user can't modify associated settings. 2016-02-23 18:13:30 +00:00
setting.php Customize: Add setting validation model and control notifications to augment setting sanitization. 2016-05-20 21:09:40 +00:00
widgets.php Customize: Handle filtering sidebars_widgets when the underlying option is non-existent. 2016-05-02 23:41:18 +00:00