From bf13d39e227f330306f8c16cbfab4cc11d2f80c2 Mon Sep 17 00:00:00 2001 From: Ari Stathopoulos Date: Tue, 2 Nov 2021 10:33:22 +0200 Subject: [PATCH] Unhook _block_template_render_title_tag (#36133) --- lib/full-site-editing/template-loader.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/full-site-editing/template-loader.php b/lib/full-site-editing/template-loader.php index 9b7b846579284d..efac8b066d32a2 100644 --- a/lib/full-site-editing/template-loader.php +++ b/lib/full-site-editing/template-loader.php @@ -96,7 +96,8 @@ function gutenberg_override_query_template( $template, $type, array $templates ) add_action( 'wp_head', 'gutenberg_viewport_meta_tag', 0 ); // Render title tag with content, regardless of whether theme has title-tag support. - remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering... + remove_action( 'wp_head', '_wp_render_title_tag', 1 ); // Remove conditional title tag rendering... + remove_action( 'wp_head', '_block_template_render_title_tag', 1 ); add_action( 'wp_head', 'gutenberg_render_title_tag', 1 ); // ...and make it unconditional. // This file will be included instead of the theme's template file.