Skip to content

Fix/plumbing Hero#87

Merged
jasperf merged 2 commits into
mainfrom
fix/plumbing-hero
May 22, 2026
Merged

Fix/plumbing Hero#87
jasperf merged 2 commits into
mainfrom
fix/plumbing-hero

Conversation

@jasperf
Copy link
Copy Markdown
Contributor

@jasperf jasperf commented May 22, 2026

This release patches a block validation mismatch in the Home Improvement vertical's hero pattern and bumps the theme version to 4.3.1. The stats row container in plumbing-hero.php declared margin-top:0 and padding-top:var:preset|spacing|large in its block attributes JSON, but the serialized HTML style attribute omitted both properties, causing a content mismatch that WordPress's JS block validator would flag on save. The fix aligns the inline style string with the declared block attributes, resolving the validation error without altering any layout or visual output. Version metadata has been updated across style.css, readme.txt, and CHANGELOG.md to reflect the patch release.

Bug Fix — Plumbing Hero Pattern:

  • Corrected the stats row wp:group container in patterns/plumbing-hero.php to include margin-top:0 and padding-top:var(--wp--preset--spacing--large) in the serialized style attribute, matching the block's declared "spacing":{"margin":{"top":"0"},"padding":{"top":"var:preset|spacing|large",...}} attributes and eliminating a JS block validation mismatch.
  • The mismatch was a serialization gap: PHP parse_blocks() accepted the pattern without error (Pass 1), but the Gutenberg JS serializer expected the inline style to reflect all declared spacing properties — a class of issue only caught by the sentinel runtime validator (Pass 3).

Version Bump and Release Metadata:

  • Theme version incremented from 4.3.0 to 4.3.1 in style.css and readme.txt (Stable tag), following the established patch-release convention for targeted bug fixes.
  • CHANGELOG.md updated with a new [4.3.1] - 2026-05-22 section documenting the root cause, the missing inline style properties, and the block attribute mismatch context.

Files Changed:

jasperf added 2 commits May 22, 2026 11:51
Add missing margin-top:0 and padding-top:var(--wp--preset--spacing--large)
to the stats row container's inline style to match the block attributes,
resolving the block validation content mismatch.
@jasperf jasperf merged commit d1cd963 into main May 22, 2026
3 checks passed
@jasperf jasperf deleted the fix/plumbing-hero branch May 22, 2026 04:56
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