Skip to content

Release 1.2.0#19

Merged
firestar300 merged 6 commits into
mainfrom
release/1.2.0
Jun 23, 2026
Merged

Release 1.2.0#19
firestar300 merged 6 commits into
mainfrom
release/1.2.0

Conversation

@firestar300

@firestar300 firestar300 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Release 1.2.0


Note

Medium Risk
Front-end output now depends on PHP rendering and esc_url on embed URLs; behavior should match the old save path but any parity gap would affect all newly saved blocks and dynamic renders.

Overview
Release 1.2.0 turns the iframe block into a dynamic block: new saves keep attributes in post content and front-end markup is built in PHP via BlockRenderer and a register_block_type() render_callback, replacing the previous blocks-manifest bulk registration.

The editor no longer uses a live save function; the old save.js output is registered under deprecated so posts that still contain serialized iframe HTML stay editable. includes/BlockRenderer.php mirrors the former save behavior (wrapper attributes, loading, custom iframeAttributes, exclusions for boolean/legacy attrs) with esc_url / esc_attr.

Developer/release: PSR-4 autoload for Blockparty\Iframe\, composer.lock removed from git, PHPCS short-array rules updated, version bumps across plugin metadata, blueprint ref 1.2.0, and minor npm script renames (env:start / env:stop).

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

This refactors the `blockparty-iframe` block to use a server-side `render_callback` via the new `BlockRenderer` class.

This approach ensures the iframe HTML is always generated on the server, providing greater control over attributes, sanitization, and future extensibility. Existing blocks will continue to render correctly due to the added `deprecated` save function.
This change excludes the 'composer.lock' file from version control and adds it to '.gitignore'. This is standard practice for libraries and plugins, allowing consuming projects to manage their own dependency versions without conflicts from locked versions within this package.
The codebase now consistently uses short array syntax (`[]`), replacing all instances of `array()`. This change is explicitly enforced by updating PHP_CodeSniffer and WPCS development dependencies to their latest stable versions, along with new rules in `phpcs.xml.dist`.

Additionally, the `BlockRenderer::render` method's signature has been streamlined by removing the `$content` and `$block` parameters. This simplification leverages that `get_block_wrapper_attributes()` no longer requires these arguments when rendering dynamic blocks in modern WordPress, making the function's interface cleaner and more focused.
feat: convert iframe block to dynamic server-side rendering
@firestar300 firestar300 merged commit 69c1608 into main Jun 23, 2026
5 of 6 checks passed
@firestar300 firestar300 deleted the release/1.2.0 branch June 23, 2026 13:39
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