Making WordPress.org


Ignore:
Timestamp:
12/22/2021 06:22:00 PM (5 years ago)
Author:
iandunn
Message:

Theme: Enable testing new header on w.org sandboxes

See WordPress/wporg-mu-plugins#19

File:
1 edited

Legend:

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

    r10285 r11402  
    2020);
    2121
    22 global $wporg_global_header_options;
    23 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    24         $wporg_global_header_options['in_wrapper'] = '';
    25 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-forums' ) . '</a>';
    26 wporg_get_global_header();
     22if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     23        echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     24} else {
     25        global $wporg_global_header_options;
     26        if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     27                $wporg_global_header_options['in_wrapper'] = '';
     28        $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#content">' . esc_html__( 'Skip to content', 'wporg-forums' ) . '</a>';
     29        wporg_get_global_header();
     30}
     31
    2732?>
    2833
Note: See TracChangeset for help on using the changeset viewer.