WordPress.org

Make WordPress Core

Ticket #39130: 39130.10.patch

File 39130.10.patch, 698 bytes (added by keesiemeijer, 4 years ago)

improvements for /wp-includes/rest-api.php

  • src/wp-includes/rest-api.php

     
    988988/**
    989989 * Validate a value based on a schema.
    990990 *
     991 * @since  4.7.0
     992 *
    991993 * @param mixed  $value The value to validate.
    992994 * @param array  $args  Schema array to use for validation.
    993995 * @param string $param The parameter name, used in error messages.
     
    11101112/**
    11111113 * Sanitize a value based on a schema.
    11121114 *
     1115 * @since 4.7.0
     1116 *
    11131117 * @param mixed $value The value to sanitize.
    11141118 * @param array $args  Schema array to use for sanitization.
    11151119 * @return true|WP_Error