From 670e451875611ad120c4786c9c81c026543ba5bc Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Fri, 14 Jun 2019 02:24:44 +0100 Subject: [PATCH] Code formatting --- lib/class-wp-rest-menu-items-controller.php | 2 +- lib/class-wp-rest-menus-controller.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } }