Ticket #37759: 37759.diff
File 37759.diff, 1.2 KB (added by , 9 years ago) |
---|
-
wp-includes/class-wp-customize-manager.php
991 991 /** 992 992 * Validates setting values. 993 993 * 994 * Sanitization is applied to the values before being passed for validation.995 994 * Validation is skipped for unregistered settings or for values that are 996 * already null since they will be skipped anyway. 995 * already null since they will be skipped anyway. Sanitization is applied 996 * to values that pass validation, and values that become null or `WP_Error` 997 * after sanitizing are marked invalid. 997 998 * 998 999 * @since 4.6.0 999 1000 * @access public … … 1001 1002 * @see WP_REST_Request::has_valid_params() 1002 1003 * @see WP_Customize_Setting::validate() 1003 1004 * 1004 * @param array $setting_values Mapping of setting IDs to values to sanitize and validate.1005 * @param array $setting_values Mapping of setting IDs to values to validate and sanitize. 1005 1006 * @return array Mapping of setting IDs to return value of validate method calls, either `true` or `WP_Error`. 1006 1007 */ 1007 1008 public function validate_setting_values( $setting_values ) {