[wp-trac] [WordPress Trac] #64651: Icons: Backport Icons Registry and wp/v2/icons endpoint from Gutenberg

WordPress Trac noreply at wordpress.org
Mon Feb 16 15:48:07 UTC 2026


#64651: Icons: Backport Icons Registry and wp/v2/icons endpoint from Gutenberg
--------------------------+-----------------------------
 Reporter:  mcsf          |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Gutenberg PR: https://github.com/WordPress/gutenberg/pull/72215
 Blocker for the Icon block:
 https://github.com/WordPress/gutenberg/pull/71227
 Blessed in: https://github.com/WordPress/gutenberg/issues/16484

 The work in Gutenberg introduced a new singleton registry class,
 `WP_Icons_Registry`, to mediate access to SVG icons. For 7.0, this
 registry should be closed to third parties and
 [https://github.com/WordPress/gutenberg/pull/75526 only serve a subset] of
 the icons defined in `@wordpress/icons`. Starting with 7.1, or as soon as
 possible, the registry should be open to third parties to register custom
 icons.

 As a companion to the registry class, a new REST API controller defined
 endpoints `/wp/v2/icons` and `/wp/v2/icons/<slug>`, meant only for
 retrieval.

 Together, they are essential infrastructure to the Icon block, which is to
 be shipped in 7.0 too. After 7.0, that block should be able to allow users
 to add custom icons to their collection.

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


More information about the wp-trac mailing list