Skip to content

Commit

Permalink
Add moar comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed May 5, 2020
1 parent 634bd0c commit 3f199c6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/template-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,13 @@ function gutenberg_override_query_template( $template, $type, array $templates =
$_wp_current_template_content = empty( $current_template_post->post_content ) ? __( 'Empty template.', 'gutenberg' ) : $current_template_post->post_content;
}

// Add extra hooks for template canvas.
// Add hooks for template canvas.
// Add viewport meta tag.
add_action( 'wp_head', 'gutenberg_viewport_meta_tag', 0 );
remove_action( 'wp_head', '_wp_render_title_tag', 1 );
add_action( 'wp_head', 'gutenberg_render_title_tag', 1 );

// 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...
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.
return gutenberg_dir_path() . 'lib/template-canvas.php';
Expand Down

0 comments on commit 3f199c6

Please sign in to comment.