Skip to content

Commit

Permalink
Site Editor: don't hide nav after Gutenberg 12.2 (#58830)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwiebe authored Dec 16, 2021
1 parent 3ad7346 commit 5a65da2
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5a65da2

Please sign in to comment.