Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Editor: don't hide nav after Gutenberg 12.2 #58830

Merged
merged 3 commits into from
Dec 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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