WordPress.org

Make WordPress Core

Changeset 48307


Ignore:
Timestamp:
07/05/2020 12:17:54 AM (5 weeks ago)
Author:
TimothyBlynJacobs
Message:

REST API: Correct the return type of rest_sanitize_value_from_schema.

Fixes #45486.
Props birgire, Jean-David, mukesh27, priyankkpatel.

File:
1 edited

Legend:

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

    r48306 r48307  
    17191719 * @param array  $args  Schema array to use for sanitization.
    17201720 * @param string $param The parameter name, used in error messages.
    1721  * @return true|WP_Error
     1721 * @return mixed The sanitized value.
    17221722 */
    17231723function rest_sanitize_value_from_schema( $value, $args, $param = '' ) {
Note: See TracChangeset for help on using the changeset viewer.