A full rewrite on the modern @wordpress/scripts toolchain. Replaces the cgb-scripts-based 2.x line in place — the plugin slug (mutelife/galeria) is unchanged, and existing posts continue to render until they're re-edited.
What's new
- Modern toolchain:
@wordpress/scriptswith--blocks-manifestbuild,apiVersion: 3 - Single-block layout under
src/mutelife-galeria/ - New Fortico layout (1 tall + 3 stacked) auto-suggested the first time you insert exactly four images, with an inspector toggle to switch back to auto
- Default
autolayout uses uniform row heights regardless of aspect ratio, on flex withflex-growproportional to each image's ratio - Block-theme variables for gap (
--wp--custom--gap--horizontal/--vertical), with sensible fallbacks for classic themes - Wide / full alignment supported, defaults to wide
Migration
- A deprecation in
src/mutelife-galeria/deprecated.jsrecognises v2 saved markup (cgb-scripts era —terco/tercos/fortico-horizontal/unveil/etc.) and migrates the attribute shape on next edit - Untouched v2 posts keep rendering through legacy CSS selectors carried in
style.scss— no manual intervention needed unless / until you re-edit a gallery
Requirements
- WordPress 6.8+
- PHP 7.4+