WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#53302 closed defect (bug) (duplicate)

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

Reported by: 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 5 months ago.

Download all attachments as: .zip

Change History (6)

#1 @spacedmonkey
5 months ago

  • Description modified (diff)

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


5 months ago

  • Keywords has-patch added; needs-patch removed

#3 @spacedmonkey
5 months ago

  • Keywords needs-patch added; has-patch removed

Related #53303

#4 @prbot
5 months ago

TimothyBJacobs commented on PR #1315:

Can we unique by the widget id instead?

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