[wp-trac] [WordPress Trac] #60826: Fix incorrect use of add_theme_support( 'editor-style(s)' )

WordPress Trac noreply at wordpress.org
Sun Jun 9 15:41:53 UTC 2024


#60826: Fix incorrect use of add_theme_support( 'editor-style(s)' )
--------------------------+---------------------
 Reporter:  Soean         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.6
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by oglekler):

 I wonder if this can possibly break something for people who used 'editor-
 style' because it is used in the core? 🤔

 add_editor_style() function declaring support for 'editor-style' and I
 found this confusing, so I added "add_theme_support( 'editor-styles' )"
 before add_editor_style() in theme I am working on (classic approach works
 for me better).

 I also wonder if test should count on different state for classic and
 block themes, because for block themes, 'editor-styles' declared by
 default.

 I think, the patch needs rebase.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60826#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list