diff --git a/lib/class-wp-rest-menu-items-controller.php b/lib/class-wp-rest-menu-items-controller.php index 60407b6..d0422a2 100644 --- a/lib/class-wp-rest-menu-items-controller.php +++ b/lib/class-wp-rest-menu-items-controller.php @@ -1,6 +1,6 @@ taxonomy ); + $term = $this->get_term( $term ); /** * Fires after a single term is created or updated via the REST API. @@ -290,7 +290,7 @@ public function get_item_schema() { unset( $schema['properties']['count'] ); unset( $schema['properties']['link'] ); unset( $schema['properties']['taxonomy'] ); - + return $schema; } }