diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 3284017cdc..ddc6380873 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -965,7 +965,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { 'taxonomy' => array( 'description' => __( 'Type attribution for the term.' ), 'type' => 'string', - 'enum' => array_keys( get_taxonomies() ), + 'enum' => array( $this->taxonomy ), 'context' => array( 'view', 'embed', 'edit' ), 'readonly' => true, ), diff --git a/wp-includes/version.php b/wp-includes/version.php index ea886358ee..818ddee9ec 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6.1-alpha-50046'; +$wp_version = '5.6.1-alpha-50047'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.