mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 07:51:49 +01:00
REST API: Correct the return type of rest_sanitize_value_from_schema
.
Fixes #45486. Props birgire, Jean-David, mukesh27, priyankkpatel. Built from https://develop.svn.wordpress.org/trunk@48307 git-svn-id: http://core.svn.wordpress.org/trunk@48076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
77b474c905
commit
e6f620570d
@ -1718,7 +1718,7 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) {
|
|||||||
* @param mixed $value The value to sanitize.
|
* @param mixed $value The value to sanitize.
|
||||||
* @param array $args Schema array to use for sanitization.
|
* @param array $args Schema array to use for sanitization.
|
||||||
* @param string $param The parameter name, used in error messages.
|
* @param string $param The parameter name, used in error messages.
|
||||||
* @return true|WP_Error
|
* @return mixed The sanitized value.
|
||||||
*/
|
*/
|
||||||
function rest_sanitize_value_from_schema( $value, $args, $param = '' ) {
|
function rest_sanitize_value_from_schema( $value, $args, $param = '' ) {
|
||||||
$allowed_types = array( 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' );
|
$allowed_types = array( 'array', 'object', 'string', 'number', 'integer', 'boolean', 'null' );
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.5-alpha-48306';
|
$wp_version = '5.5-alpha-48307';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user