Skip to content

Commit

Permalink
Only show Design submenu item if theme supports editor styles
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Dec 6, 2024
1 parent 4193851 commit 41e94a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/compat/wordpress-6.8/site-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 41e94a0

Please sign in to comment.