Custom Block Builder – Lazy Blocks changelog
By nK, on WordPress.org since 2018. 20,000+ active installs.
21 tagged releases, newest first. Dates are when each release was tagged in SVN. Notes come from the plugin's readme, which may not list every release.
-
- fixed invalid Handlebars templates breaking the page and the editor preview
-
- patched security vulnerabilities in build dependencies
- Pro:
- added a license screen with your license status, expiry date, and steps to find your key, clarified update messages in the Plugins list, and hid license notices in copies embedded in a theme or plugin
-
- added a Live Preview button on the WordPress.org plugin page, with a sample Hero block to try
- fixed a fatal error with WPML when a block has a Repeater inside another Repeater with translatable controls
- fixed inline styles with a colon or semicolon inside a value, such as a background image URL, being cut in the editor when the block output uses useBlockProps
- fixed the block builder marking a block as changed and offering Undo as soon as it opens
- fixed the block builder sidebar staying empty after creating a block on sites with SCRIPT_DEBUG enabled
- Pro:
And 1 more note.
-
- fixed style variations in the block builder ignoring typing in the Name and Label fields and staying in the list after removal
-
- added WordPress 7.2 compatibility
- requires PHP version 8.3 or higher
- redesigned the block builder: a block card with the icon, title, description and an editable slug, a control picker laid out like the block inserter, and control settings grouped into Settings, Layout and Behavior
- improved the block builder controls list: one actions menu per control, double-click to rename, arrow keys to move the selection, and a button to copy the control name
- added border, background, duotone, sticky position, interactivity, text columns, text shadow (WordPress 7.2), width and height supports to the block builder, all off by default
- added a block builder notice when style supports are enabled but the frontend output has no useBlockProps wrapper
And 17 more notes.
-
- improved page and editor loading speed on sites with many blocks
- fixed WPML offering block settings such as select values, colors and block IDs for translation when no control of the block is marked Translate
- Pro:
- improved page loading speed on sites with a few dozen blocks or more, which could take several seconds since Pro 4.1
- fixed a failed plugin update on the Plugins screen holding back the other updates queued after it until the page was reloaded
-
- changed Lazy Blocks to stay active next to Lazy Blocks Pro instead of being deactivated
-
- added WordPress 7.1 compatibility
- added filters for extending how a block renders in the editor preview
- improved the Gallery control in the block builder, which now previews its images in a grid
- improved Gallery control loading speed on galleries with many images, fetching image data in one request instead of one per image
- fixed dragging values in a multi-select control inside the editor canvas
- fixed Image, File and Gallery values not being read when written as raw JSON in block markup
And 4 more notes.
-
- improved performance by caching prepared get_blocks() results within a single request
- fixed Lazy Blocks role capability sync to run once on plugin upgrade instead of on every admin request
- Pro:
- fixed SEO frontend preload performance by batching initial block renders in a single request
- fixed code editor syntax highlighting when system dark mode is enabled
-
- added compatibility for WordPress 7.0
- added support Groups Content and List groups for controls in Inspector
- fixed Checkbox with multiple options and Save in Meta error
- fixed possible vulnerability – stronger checks on who can change block code (editor, front-end output, and scripts), so permissions are respected even if something tries to update block meta outside the normal editor
- fixed displaying unfinished block drafts with an empty slug
- minor fixes and changes
-
- fixed context-aware capability check for PHP block rendering (resolves XSS)
-
- added caching for the get_blocks() function to prevent loading block custom posts on every page load. This fixes the issue with heavy SQL calls on sites using a large number of blocks (20+)
- fixed URL control inside the ‘content’ placement. Since you asked to keep it working in Content, we restored the control here and now display settings in a Modal – this is a workaround for Gutenberg limitations with URL components inside iframe preview
- fixed required control check and post locking when a block is rendered inside a preview example
- Pro:
- added Link control: https://www.lazyblocks.com/docs/blocks-controls/link/
- added Token Field control: https://www.lazyblocks.com/docs/blocks-controls/token-field/
And 2 more notes.
-
- security fix: prevent unauthorized block export access
- added $content attribute to lzb/block_render/output filters
- Pro:
- fixed rendering blocks in widgets screen when Rank Math is active
-
- !breaking change – in Theme Templates renamed $context to $render_location to use $context for Gutenberg blocks Context feature instead: https://www.lazyblocks.com/docs/blocks-code/relationships/
- requires PHP version 8.0 or higher, with version 8.3 and above recommended
- added JS filter for devs: lzb.registerBlockType.args
- added PHP filters for devs: lzb/register_blocks, lzb/get_blocks
- fixed content wrapper controls color inheritance from parent
- fixed losing focus from input fields in the inspector controls when block render preview updated
And 7 more notes.
-
- Pro:
- fixed incorrect displaying controls in inspector inside different groups
-
- fixed displaying block border in editor when used repeater in inspector
-
- restored lzb/block_render/allow_wrapper filter to prevent existing user blocks from breaking, but we now deprecate this hook and display a notice to migrate to the useBlockProps attribute
- Pro:
- fixed updater caching issue that sometimes caused Forbidden errors
-
- deprecated Templates feature. You need to migrate to the WordPress FSE theme and use Template editor natively. Learn more -> https://wordpress.org/documentation/article/template-editor/. Our implementation will still work for existing sites, but it is deprecated for future use.
- improved Block Builder UI and reworked some option names and placement
- added possibility to control the block wrapper and remove the block border from the editor https://www.lazyblocks.com/docs/blocks-code/use-block-props/
- added setup wizard with predefined blocks for quick start your custom blocks https://www.lazyblocks.com/docs/create-block/#setup-wizard
- added more Supports options: color, layout, shadow, spacing, dimensions, typography https://www.lazyblocks.com/docs/create-block/#block-settings
- added lzb/register_block_type_data filter to override block registration data
And 19 more notes.
-
- fixed XSS issue in admin blocks list page
-
- added block inserter preview (thanks https://github.com/nk-crew/lazy-blocks/pull/230)
- fixed PHP8 deprecation warning
- fixed security issue in the code for duplicating post (thanks to the Wordfence team)
- minor changes
-
No notes for this release in the current readme.