Making WordPress.org


Ignore:
Timestamp:
12/22/2021 06:17:43 PM (4 years ago)
Author:
iandunn
Message:

WordPress.org Learn: Sync with GitHub

File:
1 edited

Legend:

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

    r11352 r11400  
    1414use function WPOrg_Learn\Locale\{ locale_notice };
    1515
    16 global $wporg_global_header_options;
    17 if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
    18     $wporg_global_header_options['in_wrapper'] = '';
     16if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     17    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     18} else {
     19    global $wporg_global_header_options;
     20    if ( ! isset( $wporg_global_header_options['in_wrapper'] ) ) {
     21        $wporg_global_header_options['in_wrapper'] = '';
     22    }
     23    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-learn' ) . '</a>';
     24    wporg_get_global_header();
    1925}
    20 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-learn' ) . '</a>';
    21 wporg_get_global_header();
    2226
    2327$menu_items = array(
Note: See TracChangeset for help on using the changeset viewer.