Skip to content

Commit

Permalink
Header: Allow multiple header includes for fixed position workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Oct 25, 2021
1 parent b48eecb commit 7aad310
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mu-plugins/blocks/global-header-footer/blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ function register_block_types() {
*/
function render_global_header() {
ob_start();
require_once __DIR__ . '/header.php';

// Allow multiple includes for the `site-header-offset` workaround.
require __DIR__ . '/header.php';
return do_blocks( ob_get_clean() );
}

Expand Down

0 comments on commit 7aad310

Please sign in to comment.