Changeset 11431
- Timestamp:
- 01/12/2022 07:19:37 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content
- Files:
-
- 1 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/gutenberg/header.php
r6307 r11431 9 9 * @package Gutenbergtheme 10 10 */ 11 $GLOBALS['pagetitle'] = wp_get_document_title();12 11 require WPORGPATH . 'header.php'; 13 12 ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/functions.php
r11386 r11431 7 7 function after_setup_theme() { 8 8 add_theme_support( 'responsive-embeds' ); 9 add_theme_support( 'title-tag' ); 9 10 10 11 remove_theme_support( 'custom-header' ); -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php
r11402 r11431 4 4 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 5 } else { 6 $GLOBALS['pagetitle'] = wp_get_document_title();7 6 global $wporg_global_header_options; 8 7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/functions.php
r10069 r11431 162 162 add_theme_support( 'automatic-feed-links' ); 163 163 add_theme_support( 'post-thumbnails' ); 164 add_theme_support( 'title-tag' ); 164 165 165 166 // Modify default breadcrumbs. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/header.php
r11402 r11431 11 11 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 12 12 } else { 13 $GLOBALS['pagetitle'] = wp_get_document_title();14 13 require WPORGPATH . 'header.php'; 15 14 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/functions.php
r11400 r11431 86 86 */ 87 87 function wporg_get_global_header() { 88 $GLOBALS['pagetitle'] = wp_title( '|', false, 'right' ) . __( 'Learn WordPress', 'wporg-learn' );89 88 require WPORGPATH . 'header.php'; 90 89 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/functions.php
r10966 r11431 11 11 register_nav_menu( 'primary', __( 'Navigation Menu', 'make-wporg' ) ); 12 12 add_theme_support( 'post-thumbnails' ); 13 add_theme_support( 'title-tag' ); 13 14 } 14 15 … … 46 47 47 48 /** 48 * Omit page name fromfront page title.49 * Set page name for front page title. 49 50 * 50 51 * @param array $parts The document title parts. 51 52 * @return array The document title parts. 52 53 */ 53 function make_ remove_frontpage_name_from_title( $parts ) {54 function make_add_frontpage_name_to_title( $parts ) { 54 55 if ( is_front_page() ) { 55 $parts['title'] = ''; 56 $parts['title'] = 'Get Involved'; 57 $parts['site'] = 'WordPress.org'; 56 58 } 57 59 58 60 return $parts; 59 61 } 60 add_filter( 'document_title_parts', 'make_ remove_frontpage_name_from_title' );62 add_filter( 'document_title_parts', 'make_add_frontpage_name_to_title' ); 61 63 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-makehome/header.php
r11402 r11431 4 4 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 5 } else { 6 $GLOBALS['pagetitle'] = wp_get_document_title();7 6 global $wporg_global_header_options; 8 7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-openverse/header.php
r11402 r11431 15 15 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 16 16 } else { 17 $GLOBALS['pagetitle'] = wp_get_document_title();18 17 global $wporg_global_header_options; 19 18 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/header.php
r2221 r11431 1 1 <?php 2 global $pagetitle;3 $pagetitle = wp_get_document_title();4 2 require WPORGPATH . 'header.php'; 5 3 ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-patterns/header.php
r11164 r11431 14 14 use const WordPressdotorg\Pattern_Directory\Pattern_Post_Type\POST_TYPE; 15 15 16 $GLOBALS['pagetitle'] = wp_get_document_title();17 16 global $wporg_global_header_options; 18 17 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) { -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/functions.php
r10860 r11431 24 24 // Add default posts and comments RSS feed links to head. 25 25 add_theme_support( 'automatic-feed-links' ); 26 27 // Add support for WordPress generated <title> tags. 28 add_theme_support( 'title-tag' ); 26 29 27 30 // Don't include Adjacent Posts functionality. -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/header.php
r11402 r11431 21 21 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 22 22 } else { 23 $GLOBALS['pagetitle'] = wp_get_document_title();24 23 global $wporg_global_header_options; 25 24 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r10664 r11431 3 3 // Add support for adding feed links to head. 4 4 add_theme_support( 'automatic-feed-links' ); 5 6 // Add support for title tags. 7 add_theme_support( 'title-tag' ); 5 8 6 9 // Disable comments feed. … … 262 265 // wp_get_document_title() is used by the theme in breadcrumb(), whereby it 263 266 // only really needs the title. 264 if ( did_action( 'wp_ head' ) ) {267 if ( did_action( 'wp_body_open' ) ) { 265 268 return array( 'title' => $parts['title'] ); 266 269 } -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
r11402 r11431 4 4 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 5 5 } else { 6 $GLOBALS['pagetitle'] = wp_get_document_title();7 6 global $wporg_global_header_options; 8 7 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
r11423 r11431 17 17 function wporg_support_theme_support() { 18 18 add_theme_support( 'html5', array( 'comment-form' ) ); 19 add_theme_support( 'title-tag' ); 19 20 } 20 21 add_action( 'after_setup_theme', 'wporg_support_theme_support' ); … … 270 271 */ 271 272 function wporg_get_global_header() { 272 273 $GLOBALS['pagetitle'] = wp_title( '|', false, 'right' );274 // Suffix either "WordPress.org $LOCALE" or WordPress.org.275 if ( isset( $GLOBALS['wporg_global_header_options']['rosetta_title'] ) ) {276 $GLOBALS['pagetitle'] .= $GLOBALS['wporg_global_header_options']['rosetta_title'];277 } else {278 $GLOBALS['pagetitle'] .= __( 'WordPress.org', 'wporg-forums' );279 }280 281 273 require WPORGPATH . 'header.php'; 282 274 } … … 290 282 } 291 283 add_filter( 'bbp_raw_title', 'wporg_support_bbp_raw_title' ); 284 285 /** 286 * Add bbPress titles to the document title. 287 * 288 * bbPress doesn't support `title-tag` theme support, instead relying upon `wp_title` filters instead. 289 */ 290 function wporg_support_pre_get_document_title( $title ) { 291 // See wp_get_document_title() 292 $sep = apply_filters( 'document_title_separator', '|' ); 293 294 return bbp_title( $title, $sep, 'right' ); 295 } 296 add_filter( 'pre_get_document_title', 'wporg_support_pre_get_document_title' ); 292 297 293 298 /** -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php
r11298 r11431 22 22 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' 23 23 ) ); 24 25 add_theme_support( 'title-tag' ); 24 26 25 27 // No need for canonical lookups -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/header.php
r11402 r11431 9 9 echo do_blocks( '<!-- wp:wporg/global-header /-->' ); 10 10 } else { 11 $GLOBALS['pagetitle'] = wp_get_document_title();12 11 global $wporg_global_header_options; 13 12 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
Note: See TracChangeset
for help on using the changeset viewer.