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>
12 lines
518 B
PHP
12 lines
518 B
PHP
<?php
|
|
define( 'CHRNX_VERSION', '0.4.1' );
|
|
|
|
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
|
foreach ( array( 'setup', 'assets', 'taxonomies', 'editor', 'podcast-meta', 'project-meta', 'release-meta', 'show-meta', 'track-meta', 'settings', 'queries', 'media', 'blocks', 'theme-preference' ) as $module ) {
|
|
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
|
|
$path = get_theme_file_path( "inc/{$module}.php" );
|
|
if ( file_exists( $path ) ) {
|
|
require_once $path;
|
|
}
|
|
}
|