From 7bf5ff8f2fd7141becf94fcc867c5ac224e3a2a7 Mon Sep 17 00:00:00 2001 From: Matt Wiebe Date: Fri, 3 Dec 2021 16:05:41 -0600 Subject: [PATCH] don't load site editor nav hiding on :G: 12.1 --- .../editing-toolkit-plugin/full-site-editing-plugin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/editing-toolkit/editing-toolkit-plugin/full-site-editing-plugin.php b/apps/editing-toolkit/editing-toolkit-plugin/full-site-editing-plugin.php index 36146ea9bdc66..9200570e9f779 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/full-site-editing-plugin.php +++ b/apps/editing-toolkit/editing-toolkit-plugin/full-site-editing-plugin.php @@ -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.