Make WordPress Core

Ticket #37759: 37759.diff

File 37759.diff, 1.2 KB (added by dlh, 9 years ago)
  • wp-includes/class-wp-customize-manager.php

     
    991991        /**
    992992         * Validates setting values.
    993993         *
    994          * Sanitization is applied to the values before being passed for validation.
    995994         * 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.
    997998         *
    998999         * @since 4.6.0
    9991000         * @access public
     
    10011002         * @see WP_REST_Request::has_valid_params()
    10021003         * @see WP_Customize_Setting::validate()
    10031004         *
    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.
    10051006         * @return array Mapping of setting IDs to return value of validate method calls, either `true` or `WP_Error`.
    10061007         */
    10071008        public function validate_setting_values( $setting_values ) {