Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#53302 closed defect (bug) (duplicate)

Widget type REST API endpoint return multiples of the same widget type.

Reported by: spacedmonkey's profile spacedmonkey Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.8
Component: REST API Keywords: needs-patch
Focuses: rest-api Cc:

Description (last modified by spacedmonkey)

For some reason the widget type REST API is returning the multiples same widget type. See screenshot attached.

Attachments (1)

Screenshot 2021-05-30 at 22.23.39.png (646.8 KB) - added by spacedmonkey 3 years ago.

Download all attachments as: .zip

Change History (6)

#1 @spacedmonkey
3 years ago

  • Description modified (diff)

This ticket was mentioned in PR #1315 on WordPress/wordpress-develop by spacedmonkey.

3 years ago

  • Keywords has-patch added; needs-patch removed

#3 @spacedmonkey
3 years ago

  • Keywords needs-patch added; has-patch removed

Related #53303

TimothyBJacobs commented on PR #1315:

3 years ago

Can we unique by the widget id instead?

#5 @SergeyBiryukov
3 years ago

  • Milestone 5.8 deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for the ticket!

It looks like a PR for de-duplicating widget types by their id is available in #53305, along with some unit tests, so let's continue the discussion there.

Note: See TracTickets for help on using tickets.