Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#56072 closed defect (bug) (fixed)

REST API: menu items 'type_label' schema defined twice

Reported by: dlh Owned by: audrasjb
Priority: normal Milestone: 6.1
Component: REST API Version: 5.9
Severity: normal Keywords: has-patch commit
Cc: Focuses:

Description

The schema for the type_label property is defined twice in WP_REST_Menu_Items_Controller::get_item_schema(). The linked Pull Request removes the second definition (but keeps its more-descriptive description).

Change History (5)

#2 @SergeyBiryukov
4 years ago

  • Keywords commit added
  • Milestone Awaiting Review6.1

#3 @audrasjb
4 years ago

  • Owner set to audrasjb
  • Status newaccepted

Hi,
The PR looks good to me. Self-assnigning for commit.

#4 @audrasjb
4 years ago

  • Resolutionfixed
  • Status acceptedclosed

In 53678:

REST API: Consolidate menu item type_label schema declaration.

This changeset removes a duplicate definition of the type_label property and consolidates the description of this property.

Props dlh, SergeyBiryukov.
Fixes #56072.

Note: See TracTickets for help on using tickets.