Wordpress 4.6
[autoinstalls/wordpress.git] / wp-includes / customize / class-wp-customize-selective-refresh.php
index f90f0f988b3908ead0bb823b4685aec6ef0dc230..245d32a27bc4bf95067c10aadcdc29eebb075085 100644 (file)
@@ -402,6 +402,10 @@ final class WP_Customize_Selective_Refresh {
                        $response['errors'] = $this->triggered_errors;
                }
 
+               $setting_validities = $this->manager->validate_setting_values( $this->manager->unsanitized_post_values() );
+               $exported_setting_validities = array_map( array( $this->manager, 'prepare_setting_validity_for_js' ), $setting_validities );
+               $response['setting_validities'] = $exported_setting_validities;
+
                /**
                 * Filters the response from rendering the partials.
                 *