From ce4a04088afd0995c8fb6d31f5f8d9687910227d Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 22 Dec 2021 18:22:00 +0000 Subject: [PATCH] Theme: Enable testing new header on w.org sandboxes See WordPress/wporg-mu-plugins#19 git-svn-id: https://meta.svn.wordpress.org/sites/trunk@11402 74240141-8908-4e6f-9713-ba540dce6ec7 --- .../themes/pub/wporg-breathe/footer.php | 7 ++++++- .../themes/pub/wporg-breathe/header.php | 18 ++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/footer.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/footer.php index 5d9221e..964d625 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/footer.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/footer.php @@ -12,4 +12,9 @@ ' ); +} else { + require WPORGPATH . 'footer.php'; +} diff --git a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php index 9e061cc..83fe8bf 100644 --- a/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php +++ b/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/header.php @@ -1,10 +1,16 @@ ' . esc_html__( 'Skip to content', 'wporg' ) . ''; -require WPORGPATH . 'header.php'; + +if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) { + echo do_blocks( '' ); +} else { + $GLOBALS['pagetitle'] = wp_get_document_title(); + global $wporg_global_header_options; + if ( !isset( $wporg_global_header_options['in_wrapper'] ) ) + $wporg_global_header_options['in_wrapper'] = ''; + $wporg_global_header_options['in_wrapper'] .= ''; + require WPORGPATH . 'header.php'; +} + ?>