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-makehome/header.php

    r9927 r11402  
    11<?php
    2 $GLOBALS['pagetitle'] = wp_get_document_title();
    3 global $wporg_global_header_options;
    4 if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) {
    5         $wporg_global_header_options['in_wrapper'] = '';
     2
     3if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
     4        echo do_blocks( '<!-- wp:wporg/global-header /-->' );
     5} else {
     6        $GLOBALS['pagetitle'] = wp_get_document_title();
     7        global $wporg_global_header_options;
     8        if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) {
     9                $wporg_global_header_options['in_wrapper'] = '';
     10        }
     11        $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';
     12        require( WPORGPATH . 'header.php' );
    613}
    7 $wporg_global_header_options['in_wrapper'] .= '<a class="skip-link screen-reader-text" href="#headline">' . esc_html( 'Skip to content', 'make-wporg' ) . '</a>';
    8 require( WPORGPATH . 'header.php' );
     14
    915?>
    1016
Note: See TracChangeset for help on using the changeset viewer.