Skip to content

Commit

Permalink
don't load site editor nav hiding on :G: 12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwiebe committed Dec 3, 2021
1 parent c1bf48f commit 7bf5ff8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ function load_tags_education() {
* (Core Full Site Editing)
*/
function load_wpcom_site_editor() {
// This is no longer needed after Gutenberg 12.1 due to the Navigation menu no longer being inscrutable.
if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '12.1.0', '>=' ) ) {
return;
}
require_once __DIR__ . '/wpcom-site-editor/index.php';
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load_wpcom_site_editor', 11 ); // load just after the Gutenberg plugin.

0 comments on commit 7bf5ff8

Please sign in to comment.