Ticket #45486: 45486.patch
File 45486.patch, 539 bytes (added by , 6 years ago) |
---|
-
wp-includes/rest-api.php
diff -Naur wp-includes/rest-api.php wp-includes/rest-api.php
1247 1247 * 1248 1248 * @param mixed $value The value to sanitize. 1249 1249 * @param array $args Schema array to use for sanitization. 1250 * @return true|WP_Error1250 * @return array|int|float|boolean|string Based on args type it will return value. 1251 1251 */ 1252 1252 function rest_sanitize_value_from_schema( $value, $args ) { 1253 1253 if ( 'array' === $args['type'] ) {