docs: the version bump is what makes a new pattern register
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 file changed
+2
@@ -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-<cache_hash>`, 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
|
||||
|
||||
Reference in new issue
Block a user