WordPress.org

Make WordPress Core

Ticket #45486: patch-45486.diff

File patch-45486.diff, 509 bytes (added by Jean-David, 3 years ago)

Fix inline documentation

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

     
    11121112 *
    11131113 * @param mixed $value The value to sanitize.
    11141114 * @param array $args  Schema array to use for sanitization.
    1115  * @return true|WP_Error
     1115 * @return int|float|string|array|boolean
    11161116 */
    11171117function rest_sanitize_value_from_schema( $value, $args ) {
    11181118        if ( 'array' === $args['type'] ) {