Skip to content

Commit

Permalink
Unhook _block_template_render_title_tag (#36133)
Browse files Browse the repository at this point in the history
  • Loading branch information
aristath authored Nov 2, 2021
1 parent f26e0af commit bf13d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/full-site-editing/template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf13d39

Please sign in to comment.