WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months ago

#53305 closed defect (bug)

REST API: Duplicate widget types in /wp/v2/widget-types — at Initial Version

Reported by: noisysocks Owned by:
Milestone: 5.8 Priority: normal
Severity: normal Version: 5.8
Component: REST API Keywords: has-patch has-unit-tests
Focuses: Cc:

Description

The /wp/v2/widget-types endpoint is returning duplicate widget types which causes the issue described in https://github.com/WordPress/gutenberg/issues/32019.

Using https://httpie.io:

http -a admin:password GET http://wp-git-build.test/wp-json/wp/v2/widget-types | jq '.[].id'
"pages"
"calendar"
"archives"
"media_audio"
"media_image"
"media_gallery"
"media_video"
"meta"
"search"
"search"
"text"
"categories"
"recent-posts"
"recent-comments"
"rss"
"tag_cloud"
"nav_menu"
"custom_html"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"
"block"

Change History (0)

Note: See TracTickets for help on using tickets.