Making WordPress.org


Ignore:
Timestamp:
12/22/2021 06:22:00 PM (4 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-plugins/header.php

    r11126 r11402  
    1818);
    1919
    20 $GLOBALS['pagetitle'] = wp_get_document_title();
    21 global $wporg_global_header_options;
    22 if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
    23     $wporg_global_header_options['in_wrapper'] = '';
    24 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-plugins' ) . '</a>';
    25 require WPORGPATH . 'header.php';
     20if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     21    echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     22} else {
     23    $GLOBALS['pagetitle'] = wp_get_document_title();
     24    global $wporg_global_header_options;
     25    if ( !isset( $wporg_global_header_options['in_wrapper'] ) )
     26        $wporg_global_header_options['in_wrapper'] = '';
     27    $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#main">' . esc_html__( 'Skip to content', 'wporg-plugins' ) . '</a>';
     28    require WPORGPATH . 'header.php';
     29}
     30
    2631?>
    2732<div id="page" class="site">
Note: See TracChangeset for help on using the changeset viewer.