Theme: Enable the new global header/footer

This commit is contained in:
Ian Dunn 2023-11-03 11:35:16 -07:00
parent b0496e7a84
commit c5e3ed32c9
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
8 changed files with 303 additions and 42 deletions

View file

@ -4,11 +4,8 @@ namespace WordPressDotOrg\FiveForTheFuture\Theme;
\WordPressdotorg\skip_to( '#main' );
if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
echo do_blocks( '<!-- wp:wporg/global-header /-->' );
} else {
require WPORGPATH . 'header.php';
}
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
echo do_blocks( '<!-- wp:wporg/global-header /-->' );
?>