Update Block API Version to 3 for Gutenberg Blocks
-
Hello,
I am reaching out to report a deprecation warning in the Gutenberg editor when using the Klaviyo plugin on WordPress 6.9+ and WordPress 7.0, and to suggest updating the Block API version.
Current Implementation
Currently, Klaviyo Gutenberg blocks are registered using Block API version 2. When editing pages containing these blocks in WordPress 6.9 or newer, WordPress triggers a deprecation warning in the editor console.
Affected Blocks:
- klaviyo/klaviyo-checkout-block
Proposed Enhancement
Please update the apiVersion parameter to version 3 for all registered Gutenberg blocks in the plugin and test block behavior inside the iframe editor to maintain full forward compatibility with WordPress.
Technical Notes
- Console Warning: Block with API version 2 or lower is deprecated since version 6.9. Note: The block “klaviyo/klaviyo-checkout-block” is registered with API version 2. This means that the post editor may work as a non-iframe editor. Since all editors are planned to work as iframes in the future, set the apiVersion field to 3 and test the block inside the iframe editor. (Screenshot)
- Documentation Reference: https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/block-migration-for-iframe-editor-compatibility/
- WordPress Version: 7.0 (Deprecated since 6.9)
- Klaviyo Plugin Version: 3.8.3
You must be logged in to reply to this topic.