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(