mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-04 18:05:45 +03:00
Theme: Enable the new global header/footer
This commit is contained in:
parent
b0496e7a84
commit
c5e3ed32c9
8 changed files with 303 additions and 42 deletions
|
@ -8,8 +8,5 @@ namespace WordPressDotOrg\FiveForTheFuture\Theme;
|
|||
|
||||
<?php
|
||||
|
||||
if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
|
||||
echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
|
||||
} else {
|
||||
require WPORGPATH . 'footer.php';
|
||||
}
|
||||
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo do_blocks( '<!-- wp:wporg/global-footer /-->' );
|
||||
|
|
|
@ -2,12 +2,6 @@
|
|||
|
||||
namespace WordPressDotOrg\FiveForTheFuture\Theme;
|
||||
|
||||
// Temporary for local environments. Remove this when the new header launches.
|
||||
// See https://github.com/WordPress/wporg-mu-plugins/issues/38
|
||||
if ( ! defined( 'FEATURE_2021_GLOBAL_HEADER_FOOTER' ) ) {
|
||||
define( 'FEATURE_2021_GLOBAL_HEADER_FOOTER', false );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up theme defaults and registers support for various WordPress features.
|
||||
*
|
||||
|
|
|
@ -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 /-->' );
|
||||
|
||||
?>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue