diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php index 58ad748132..c0322f3a84 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php @@ -210,7 +210,7 @@ class WP_REST_Taxonomies_Controller extends WP_REST_Controller { } if ( in_array( 'types', $fields, true ) ) { - $data['types'] = $taxonomy->object_type; + $data['types'] = array_values( $taxonomy->object_type ); } if ( in_array( 'show_cloud', $fields, true ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 64a34623ca..39fb727483 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45812'; +$wp_version = '5.3-alpha-45813'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.