From 7c0eb51dccc9eced9eae805a936d6ed6b76832dc Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Sat, 15 Aug 2026 14:53:38 -0500 Subject: [PATCH] docs: the version bump is what makes a new pattern register Co-Authored-By: Claude Opus 5 (1M context) --- docs/superpowers/plans/2026-08-15-projects-as-entities.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/superpowers/plans/2026-08-15-projects-as-entities.md b/docs/superpowers/plans/2026-08-15-projects-as-entities.md index 165ee11..c373d87 100644 --- a/docs/superpowers/plans/2026-08-15-projects-as-entities.md +++ b/docs/superpowers/plans/2026-08-15-projects-as-entities.md @@ -1013,6 +1013,8 @@ Note that Expressive Tea is a separate project from Green Tea, so it likely need - [ ] **Step 2: Release and upload the theme** +The version bump is not optional here, and not only for cache-busting. WordPress caches theme pattern discovery in the site transient `wp_theme_files_patterns-`, and `WP_Theme::get_pattern_cache()` returns the cached list only when the stored version matches the theme's current `Version` header. Ship `patterns/projects-landing.php` without bumping the version and the pattern silently never registers — page 740 would then reference a pattern slug WordPress does not know, and render nothing. This was hit for real in the worktree, where the version stayed pinned while a pattern was added. + Bump `style.css`, `functions.php`, and all `blocks/*/block.json` to the new version together, then: ```bash