Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhook _block_template_render_title_tag #36133

Merged
merged 1 commit into from
Nov 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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