Changeset 11437
- Timestamp:
- 01/13/2022 02:34:23 PM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates
- Files:
-
- 2 edited
-
header.php (modified) (1 diff)
-
helper-functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/header.php
r11435 r11437 1 1 <?php 2 3 add_theme_support( 'title-tag' );4 add_action( 'gp_head', '_wp_render_title_tag' );5 add_filter( 'document_title_parts', function() {6 return [7 'title' => gp_title(),8 ];9 }, 1 );10 2 11 3 if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { -
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/helper-functions.php
r11425 r11437 50 50 gp_enqueue_script( 'wporg-translate-editor' ); 51 51 } 52 53 add_action( 'after_setup_theme', static function() { 54 add_theme_support( 'title-tag' ); 55 }); 56 add_action( 'gp_head', '_wp_render_title_tag' ); 57 add_filter( 'document_title_parts', static function() { 58 return [ 59 'title' => gp_title(), 60 ]; 61 }, 1 ); 52 62 53 63 /**
Note: See TracChangeset
for help on using the changeset viewer.