From ed432f915bc90060930b3ea1887c208554f83828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=20Andr=C3=A9?= Date: Thu, 22 Oct 2020 18:05:46 +0200 Subject: [PATCH] Remove duplicate block editor settings (#26330) --- lib/edit-site-page.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/edit-site-page.php b/lib/edit-site-page.php index 83089981f59756..0b8f2a17550cc1 100644 --- a/lib/edit-site-page.php +++ b/lib/edit-site-page.php @@ -87,7 +87,7 @@ function gutenberg_get_editor_styles() { * @param string $hook Page. */ function gutenberg_edit_site_init( $hook ) { - global $current_screen; + global $current_screen, $post; if ( ! gutenberg_is_edit_site_page( $hook ) ) { return; @@ -137,11 +137,6 @@ function gutenberg_edit_site_init( $hook ) { $settings['styles'] = gutenberg_get_editor_styles(); $settings = gutenberg_experimental_global_styles_settings( $settings ); - // This is so other parts of the code can hook their own settings. - // Example: Global Styles. - global $post; - $settings = apply_filters( 'block_editor_settings', $settings, $post ); - // Preload block editor paths. // most of these are copied from edit-forms-blocks.php. $preload_paths = array(