[wp-trac] [WordPress Trac] #64778: get_block_editor_theme_styles() doesn't load editor styles of parent theme

WordPress Trac noreply at wordpress.org
Mon Mar 2 13:36:30 UTC 2026


#64778: get_block_editor_theme_styles() doesn't load editor styles of parent theme
--------------------------+-----------------------------
 Reporter:  ocean90       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Themes        |    Version:  5.8
 Severity:  normal        |   Keywords:
  Focuses:  template      |
--------------------------+-----------------------------
 If a parent block theme uses `add_editor_style( 'style-editor.css' );` and
 the child theme too, the `style-editor.css` of the parent theme is no
 longer loaded. This is unexpected and different from classic themes.

 `get_editor_stylesheets()` looks in the parent theme as well while
 `get_block_editor_theme_styles()` uses `get_theme_file_path()` which
 searches in the stylesheet directory before the template directory.

 The current workaround is to use a different file name in the child theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64778>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list