Skip to content

revert: drop .html block patterns, before they ship - #359

Merged
ogorzalka merged 1 commit into
developfrom
revert/html-block-patterns
Sep 29, 2026
Merged

ogorzalka merged 1 commit into
developfrom
revert/html-block-patterns

Conversation

@ogorzalka

Copy link
Copy Markdown
Member

Reverts #354, which has not been released (it only sat in [Unreleased]).

Why

A theme's static patterns belong in patterns/*.php at its root: WordPress registers them natively — checked in a Pollora theme — and that is the layout the Site Editor (Create Block Theme) exports, and themes such as Ollie use (115 patterns, all .php). .html in resources/views/patterns duplicated that in a format only Pollora knew, and mixed static markup into resources/views, which is otherwise Blade only.

The rule that follows: the theme root holds what WordPress reads itself (templates/, parts/, patterns/, theme.json, style.css); resources/views/ holds Blade. resources/views/patterns/*.blade.php stays, for a pattern that needs Laravel.

Buzz, the only user, has moved its six .html patterns to patterns/*.php (Pollora/theme-buzz#2, merged). That move also made it work on the released beta.9, where .html patterns never rendered.

Change

git revert -m 1 of the #354 merge: PatternService, PatternConstants, PatternDataExtractorInterface, WordPressPatternDataExtractor back to their previous state; its tests and the Feature/BlockPattern Pest group removed; its CHANGELOG entry removed (never shipped, so nothing to announce).

Checked

1312 passed (1316 − the 4 tests of #354); Pint, PHPStan, Rector clean.

Reverts #354, never released. A theme's static patterns belong in
patterns/*.php at its root, which WordPress registers natively (and the
Site Editor exports): the .html format duplicated that in a format only
Pollora knew, and mixed static markup into resources/views, which is
otherwise Blade only. resources/views/patterns keeps .blade.php patterns,
for those that need Laravel.

This reverts commit 9cf62fc, reversing changes made to 81336d7.
@ogorzalka
ogorzalka merged commit 287ee37 into develop Sep 29, 2026
11 checks passed
@ogorzalka
ogorzalka deleted the revert/html-block-patterns branch September 29, 2026 14:45
@ogorzalka ogorzalka mentioned this pull request Sep 29, 2026
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