diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 5add20bc60..bdfd8fac42 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -1250,6 +1250,10 @@ function rest_validate_value_from_schema( $value, $args, $param = '' ) { } if ( 'object' === $args['type'] ) { + if ( '' === $value ) { + $value = array(); + } + if ( $value instanceof stdClass ) { $value = (array) $value; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 9ec2d6e748..b0d8c9caaa 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-beta2-47361'; +$wp_version = '5.4-beta2-47362'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.