From 5a65da2c20ff2cb95330c6b3b160b7952d0e13f4 Mon Sep 17 00:00:00 2001 From: Matt Wiebe Date: Thu, 16 Dec 2021 16:18:39 -0600 Subject: [PATCH] Site Editor: don't hide nav after Gutenberg 12.2 (#58830) --- .../editing-toolkit-plugin/full-site-editing-plugin.php | 5 +++++ 1 file changed, 5 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 adb2fe3e52c71..26d0e0a9ebb30 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,11 @@ function load_tags_education() { * (Core Full Site Editing) */ function load_wpcom_site_editor() { + // This is no longer needed after Gutenberg 12.2 due to the Navigation menu no longer being inscrutable. + // This should be deleted along with the files that would be loaded after 12.2 is in production. + if ( defined( 'GUTENBERG_VERSION' ) && version_compare( GUTENBERG_VERSION, '12.2.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.