[wp-trac] [WordPress Trac] #53305: REST API: Duplicate widget types in /wp/v2/widget-types

WordPress Trac noreply at wordpress.org
Mon May 31 06:39:56 UTC 2021


#53305: REST API: Duplicate widget types in /wp/v2/widget-types
--------------------------+--------------------
 Reporter:  noisysocks    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.8
Component:  REST API      |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 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"
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53305>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list