Skip to content

Add initial files - #1

Merged
firestar300 merged 9 commits into
developfrom
feature/init-plugin
Oct 19, 2026
Merged

firestar300 merged 9 commits into
developfrom
feature/init-plugin

Conversation

@firestar300

@firestar300 firestar300 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Note

Medium Risk
Globally extends core/button edit, save, and front-end rendering when the plugin is active; mistakes could affect button markup or editor behavior, but scope is limited to optional icon mode on buttons.

Overview
Initial release (1.0.0) of the Blockparty Button Icon WordPress plugin: it extends core/button (no new block) so editors can toggle an icon, place it left/right, and use horizontal block gap for spacing.

The block editor changes hook blocks.registerBlockType to add hasIcon / iconPosition, swap in a custom edit/save when icons are on, and manage core/icon (or filterable types via blockparty_button_icon_allowed_icon_blocks) as locked inner blocks—with cleanup when the icon is turned off. PHP enqueues built assets, passes allowed icon blocks to JS, and on the front end rewrites core/icon wrappers from div to span inside icon-enabled buttons for valid link markup.

Also adds packaging and workflow: Composer / npm (wp-scripts), lint CI, wp-env, French translations, WordPress.org readme / Playground blueprint, and release automation (version checks on PRs, tag build on main).

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

@cursor

cursor Bot commented Oct 15, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@cursor

cursor Bot commented Oct 16, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@firestar300

Copy link
Copy Markdown
Collaborator Author

bugbot review

@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.

Stale Bugbot comment from a previous run.

Comment thread classes/IconBlockRenderer.php
Comment thread src/extend-core-button/get-updated-link-attributes.js Outdated
Comment thread src/extend-core-button/edit-with-icon-toolbar.jsx Outdated
Comment thread src/extend-core-button/edit.jsx Outdated
Comment thread src/extend-core-button/icon-span-in-button.js Outdated
Comment thread .github/workflows/release.yml

@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 ec0fad8. Configure here.

Comment thread src/extend-core-button/clear-icon-blocks-when-disabled.jsx Outdated
@firestar300
firestar300 merged commit 4cae6bb into develop Oct 19, 2026
3 checks passed
@firestar300
firestar300 deleted the feature/init-plugin branch October 19, 2026 11:36
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