Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: 0 B Total Size: 8.21 MB
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
|
There was a problem hiding this comment.
This is for backward compatibility. I add a dedicated collection registry for Gutenberg to ensure that the latest registry supporting public properties is always used across all WordPress versions supported by the Gutenberg plugin, regardless of the state of the core collection registry.
There was a problem hiding this comment.
Similar to the collection registry, this is also intended to override the core REST controller.
There was a problem hiding this comment.
Copilot review overview
Review effort: Balanced
Findings: None
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-Authored-By: Claude <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
I haven't reviewed the code in details, but: maybe it's much easier to test if we also add the I think it will also easier to review, as then |
|
Personally, I wanted to split the PR—that is, the core commits—into two, because each PR represents a separate enhancement. |
Note
This pull request is a prerequisite for #83261.
What?
See #83261 (comment).
Moves the icon registry's
publicproperty from individual icons to collections.Why?
WordPress/wordpress-develop#12270 uses the icon registry for the admin bar and sidebar. #82634 introduced an icon-level
publicoption so those icons could remain available to PHP without appearing in the REST API or Icon block.However, consumers unregistering the
corecollection to customize the Icon block would also remove the dashboard icons. #83261 proposes a separatecore-admincollection to address this. With that separation, visibility can be configured for the entire collection instead of each icon.How?
publictowp_register_icon_collection(), defaulting totrue. Non-public collections and their icons are excluded from REST responses, while their icons remain available throughwp_get_icon().publicflag continues to control which icons ship to Core.Testing Instructions
'public' => falseto thecorecollection's registration arguments ingutenberg_register_default_icon_collections()inlib/icons.php.coreand the icons omit everycore/icon:rest_icon_collection_not_found):wp_get_icon( 'core/plus' )still returns SVG markup in PHP.publicargument and reload. Confirm that thecorecollection and its icons are exposed again.Use of AI Tools
Codex was used to inspect the changes, run validation, and prepare this PR description.