Make WordPress Core

Opened 2 years ago

Closed 2 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.

https://core.trac.wordpress.org/raw-attachment/ticket/53302/Screenshot%202021-05-30%20at%2022.23.39.png

Attachments (1)

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

Download all attachments as: .zip

Change History (6)

#1 @spacedmonkey
2 years ago

  • Description modified (diff)

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


2 years ago
#2

  • Keywords has-patch added; needs-patch removed

#3 @spacedmonkey
2 years ago

  • Keywords needs-patch added; has-patch removed

Related #53303

TimothyBJacobs commented on PR #1315:


2 years ago
#4

Can we unique by the widget id instead?

#5 @SergeyBiryukov
2 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.