Skip to content

Register default bbt icons collection for core/icon block - #196

Open
firestar300 wants to merge 2 commits into
mainfrom
feature/register-icon-collections
Open

firestar300 wants to merge 2 commits into
mainfrom
feature/register-icon-collections

Conversation

@firestar300

@firestar300 firestar300 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Note

Low Risk
Editor-only icon registration and block allowlisting; no auth or data-path changes, with graceful no-ops when WP icon APIs are missing.

Overview
Adds an Icon framework service that wires the WordPress 7.1+ Icon block to theme SVGs: it registers General (beapi-sprite) and Social (beapi-social) collections by scanning dist/images/{sprite|social} or src/img/icons/{sprite|social}, with bff_icon_collections, bff_icon_label, and bff_icon_properties filters for customization. By default it also unregisters the core icon collection after core registers it (bff_unregister_core_icon_collection can opt out).

The block editor is updated by removing core/icon from the disallowed-blocks list, so editors can use the Icon block with the theme collections instead of it staying hidden.

Reviewed by Cursor Bugbot for commit cb897e9. Bugbot is set up for automated code reviews on this repo. Configure here.

@firestar300 firestar300 changed the title feat(Icon): register default bff icons collection for core/icon block Register default bbt icons collection for core/icon block Oct 20, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dfca191. Configure here.

Comment thread inc/Services/Icon.php Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant