WordPress.org

Make WordPress Core

Ticket #45486: 45486.patch

File 45486.patch, 539 bytes (added by mukesh27, 3 years ago)

Updated patch.

  • wp-includes/rest-api.php

    diff -Naur wp-includes/rest-api.php wp-includes/rest-api.php
     
    12471247 *
    12481248 * @param mixed $value The value to sanitize.
    12491249 * @param array $args  Schema array to use for sanitization.
    1250  * @return true|WP_Error
     1250 * @return array|int|float|boolean|string Based on args type it will return value.
    12511251 */
    12521252function rest_sanitize_value_from_schema( $value, $args ) {
    12531253        if ( 'array' === $args['type'] ) {