Ticket #45486: patch-45486.diff
File patch-45486.diff, 509 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/rest-api.php
1112 1112 * 1113 1113 * @param mixed $value The value to sanitize. 1114 1114 * @param array $args Schema array to use for sanitization. 1115 * @return true|WP_Error1115 * @return int|float|string|array|boolean 1116 1116 */ 1117 1117 function rest_sanitize_value_from_schema( $value, $args ) { 1118 1118 if ( 'array' === $args['type'] ) {