diff --git a/lib/compat/wordpress-6.8/site-editor.php b/lib/compat/wordpress-6.8/site-editor.php index 86690a6413e1c..6d7e8cc49e652 100644 --- a/lib/compat/wordpress-6.8/site-editor.php +++ b/lib/compat/wordpress-6.8/site-editor.php @@ -130,7 +130,7 @@ function gutenberg_styles_wp_die_handler( $default_handler ) { * @global array $submenu */ function gutenberg_add_styles_submenu_item() { - if ( ! wp_is_block_theme() ) { + if ( ! wp_is_block_theme() && current_theme_supports( 'editor-styles' ) ) { global $submenu; $styles_menu_item = array(