Skip to content

Commit

Permalink
Use new header/footer
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Sep 8, 2022
1 parent b272b5f commit 9c67379
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
1 change: 1 addition & 0 deletions .wp-env/0-sandbox.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
// This file handles special loading of mu-plugins.

require_once __DIR__ . '/wporg-mu-plugins/mu-plugins/loader.php';
require_once __DIR__ . '/pub/class-validator.php';
require_once __DIR__ . '/pub/locales.php';

Expand Down
7 changes: 6 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
}
}
]
},
{
"type": "vcs",
"url": "[email protected]:WordPress/wporg-mu-plugins.git"
}
],
"require-dev": {
Expand All @@ -76,7 +80,8 @@
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
"wp-coding-standards/wpcs": "2.*",
"phpcompatibility/phpcompatibility-wp": "*",
"rmccue/requests": "^1.7"
"rmccue/requests": "^1.7",
"wporg/wporg-mu-plugins": "dev-build"
},
"scripts": {
"format": "phpcbf -p",
Expand Down
9 changes: 0 additions & 9 deletions wp-content/themes/pub/wporg-learn-2020/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ function wporg_learn_scripts() {
}
add_action( 'wp_enqueue_scripts', 'wporg_learn_scripts' );

/**
* The Header for our theme.
*
* @package WPBBP
*/
function wporg_get_global_header() {
require WPORGPATH . 'header.php';
}

/**
* Get the taxonomies associated to workshop
*
Expand Down
8 changes: 2 additions & 6 deletions wp-content/themes/pub/wporg-learn-2020/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@
\WordPressdotorg\skip_to( '#main' );
}

if ( FEATURE_2021_GLOBAL_HEADER_FOOTER ) {
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo do_blocks( '<!-- wp:wporg/global-header /-->' );
} else {
wporg_get_global_header();
}
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo do_blocks( '<!-- wp:wporg/global-header /-->' );

$menu_items = array(
'/tutorials/' => __( 'Tutorials', 'wporg-learn' ),
Expand Down

0 comments on commit 9c67379

Please sign in to comment.