Make WordPress Core

Changeset 47811


Ignore:
Timestamp:
05/16/2020 07:31:48 PM (4 years ago)
Author:
TimothyBlynJacobs
Message:

REST API: Add @since entries for rest_validate_value_from_schema().

See #49572, #48818, #44949, #50053, #48820, #49720, #42961, #44975, #43392, #38583.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r47810 r47811  
    12281228 *
    12291229 * @since 4.7.0
     1230 * @since 4.9.0 Support the "object" type.
     1231 * @since 5.2.0 Support validating "additionalProperties" against a schema.
     1232 * @since 5.3.0 Support multiple types.
     1233 * @since 5.4.0 Convert an empty string to an empty object.
     1234 * @since 5.5.0 Add the "uuid" and "hex-color" formats.
     1235 *              Support the "minLength", "maxLength" and "pattern" keywords for strings.
     1236 *              Validate required properties.
    12301237 *
    12311238 * @param mixed  $value The value to validate.
Note: See TracChangeset for help on using the changeset viewer.