Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 98404de

Browse files
committed
Hide taxonomy
1 parent aa0d20f commit 98404de

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

lib/class-wp-rest-menus-controller.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,14 +289,8 @@ public function get_item_schema() {
289289
$schema = parent::get_item_schema();
290290
unset( $schema['properties']['count'] );
291291
unset( $schema['properties']['link'] );
292-
$schema['properties']['taxonomy'] = array(
293-
'description' => __( 'Type attribution for the term.' ),
294-
'type' => 'string',
295-
'enum' => array_keys( get_taxonomies() ),
296-
'context' => array( 'embed', 'edit' ),
297-
'readonly' => true,
298-
);
299-
292+
unset( $schema['properties']['taxonomy'] );
293+
300294
return $schema;
301295
}
302296
}

0 commit comments

Comments
 (0)