fix: remove the block theme's title tag, not the classic one

The duplicate <title> survived the last release. Block themes swap
_wp_render_title_tag for _block_template_render_title_tag, so removing
the classic callback matched nothing and both titles kept rendering.

locate_block_template() registers the replacement during template_include,
after `wp` and template_redirect, so wp_head at priority 0 is the earliest
point where it can be removed before it runs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
chrnxandClaude Opus 5 committed 2026-08-14 08:55:31 -05:00
1 parent f9191a18bc
commit e394b88ee6
23 files changed
+33 -25

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "chrnx/podcast-meta",
"version": "0.4.0",
"version": "0.4.1",
"title": "Podcast Metadata",
"category": "theme",
"description": "Safe episode details for the current post.",