Skip to content

V4.0.1#83

Merged
jasperf merged 19 commits into
mainfrom
v4.0.1
May 15, 2026
Merged

V4.0.1#83
jasperf merged 19 commits into
mainfrom
v4.0.1

Conversation

@jasperf

@jasperf jasperf commented May 15, 2026

Copy link
Copy Markdown
Contributor

This release (v4.0.1) applies a comprehensive whitespace normalization pass across the entire pattern library, removes over 1,100 lines of extraneous whitespace from 70+ PHP pattern files to comply with WordPress block serialization requirements, and resolves several WooCommerce-specific block markup issues. The demo rebuild script has been extracted from the theme's scripts/ directory and relocated to the pt-cli vendor package, keeping it off the production web server and centralizing tooling maintenance. Dependencies were updated to pt-cli v2.3.1, symfony/console v7.4.11, and symfony/string v8.0.11. Developer documentation in CLAUDE.md and .vibe/config.toml was updated to reflect the new script location and multisite rebuild workflow.

Pattern Library Cleanup:

  • Executed a ten-group whitespace normalization pass across all pattern files, eliminating tabs, newlines, and spaces between opening/closing <div> tags and adjacent block comment delimiters — violations that cause WordPress block serialization failures.
  • Net reduction of approximately 567 lines across 70+ patterns, with no functional changes to block markup or content.

WooCommerce Pattern Fixes:

  • Corrected block markup and font-size synchronization across WooCommerce patterns, resolving client-side block validation errors introduced by mismatched attribute ordering.
  • Fixed the quick-add button styling and product category terms spacing in shop-filters-sidebar.php and related patterns.
  • Renamed woo-featured-products.php to woo-signature-pieces.php to better reflect its editorial intent and align with the demo store content strategy.

Tooling and Infrastructure:

  • Removed scripts/rebuild-demo.php from the theme directory; the script now ships with the pt-cli vendor package at vendor/imagewize/pt-cli/scripts/rebuild-demo.php, preventing accidental exposure on the production web server.
  • Extended rebuild-demo.php with multisite subsite support, enabling per-subsite page map lookups and --url= targeting via WP-CLI for installs running WooCommerce on a subdirectory subsite.
  • Updated CLAUDE.md with corrected WP-CLI invocation examples for both single-site and multisite rebuild workflows, and revised .distignore accordingly.

Files Changed:

Dependency lock files updated: composer.lock,

@jasperf
jasperf merged commit 8c95b0a into main May 15, 2026
3 checks passed
@jasperf
jasperf deleted the v4.0.1 branch May 15, 2026 03:41
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