Making WordPress.org


Ignore:
Timestamp:
12/17/2021 10:00:57 PM (2 years ago)
Author:
iandunn
Message:

WordPress.org Base Theme: Enable new global header/footer behind flag.

See https://github.com/WordPress/wporg-mu-plugins/issues/19

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg/header.php

    r8257 r11388  
    1212namespace WordPressdotorg\Theme;
    1313
    14 global $wporg_global_header_options;
    15 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    16     $wporg_global_header_options['in_wrapper'] = '';
    17 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
     14if ( ! FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     15    global $wporg_global_header_options;
     16
     17    if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
     18        $wporg_global_header_options['in_wrapper'] = '';
     19    }
     20    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg' ) . '</a>';
     21}
    1822
    1923get_template_part( 'header', 'wporg' );
    2024?>
     25
    2126<div id="page" class="site">
    2227    <div id="content" class="site-content row gutters">
Note: See TracChangeset for help on using the changeset viewer.