diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php index 8b57909169..7d4102a483 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php @@ -745,7 +745,7 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller { ); $schema['properties']['type_label'] = array( - 'description' => __( 'Name of type.' ), + 'description' => __( 'The singular label used to describe this type of menu item.' ), 'type' => 'string', 'context' => array( 'view', 'edit', 'embed' ), 'readonly' => true, @@ -842,13 +842,6 @@ class WP_REST_Menu_Items_Controller extends WP_REST_Posts_Controller { ), ); - $schema['properties']['type_label'] = array( - 'description' => __( 'The singular label used to describe this type of menu item.' ), - 'context' => array( 'view', 'edit', 'embed' ), - 'type' => 'string', - 'readonly' => true, - ); - $schema['properties']['url'] = array( 'description' => __( 'The URL to which this menu item points.' ), 'type' => 'string',