4.0.0
First stable release on the 4.x line.
Highlights
- Stylesheet bug fix. The Gutenberg block no longer auto-loads
form-theme.cssregardless of settings. The block now respects the global “Default form theme” toggle and the per-form override, matching the shortcode behavior. (Cause:stylefield inblock.jsonwas force-enqueueing the theme stylesheet on any page that used the block.) - Block inspector overhaul. New panels in the block sidebar:
- Form — pick a form, jump to its admin editor.
- Header — toggle to show the form title as a heading, choose H1–H6.
- Layout — alignment toolbar (left/center/right), max-width (px/em/rem/%/ch), HTML anchor id, custom CSS class.
- Stylesheets — per-block overrides (“use form/global setting”, “force load”, “force disable”) for both
form-theme.cssandforms.css. - Stable version. Bumped from
4.0.0-b9→4.0.0across the plugin header,block.json,package.json, andreadme.txt.
Upgrade notes
- No schema or data migrations.
- If you previously relied on the block always loading
form-theme.css, make sure your global “Default form theme” setting is enabled, or use the new per-block “Force load” override. - The
max-widthblock attribute is validated against a strict CSS-length regex (px,em,rem,%,ch,vw,vh); other values are ignored.
Files changed
block.json, render.php, assets/js/src/blocks/form/edit.js, assets/js/build/block-form.js, core-forms.php, package.json, readme.txt.