diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php index b5c9a86847..88494a5fa9 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php @@ -236,18 +236,8 @@ class WP_REST_Themes_Controller extends WP_REST_Controller { return true; } - if ( is_array( $support ) ) { - if ( ! $args['variadic'] ) { - $support = $support[0]; - } - - // Multi-type theme-support schema definitions always list boolean first. - if ( is_array( $schema['type'] ) && 'boolean' === $schema['type'][0] ) { - // Pass the non-boolean type through to the sanitizer, which cannot itself - // determine the intended type if the value is invalid (for example if an - // object includes non-safelisted properties). See #50300. - $schema['type'] = $schema['type'][1]; - } + if ( is_array( $support ) && ! $args['variadic'] ) { + $support = $support[0]; } return rest_sanitize_value_from_schema( $support, $schema ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 7684784cac..fdbccb7e27 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48307'; +$wp_version = '5.5-alpha-48308'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.