[wp-trac] [WordPress Trac] #54158: Themes should be updated to use add_editor_style

WordPress Trac noreply at wordpress.org
Tue Sep 21 21:16:06 UTC 2021


#54158: Themes should be updated to use add_editor_style
---------------------------+------------------------------
 Reporter:  gwwar          |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------
Changes (by sabernhardt):

 * component:  Themes => Bundled Theme


Comment:

 Is it an order issue instead of a `wp_enqueue_style` problem?

 The [https://developer.wordpress.org/block-editor/how-to-guides/themes
 /theme-support/#enqueuing-the-editor-style how-to guide] says that "you
 first need to `add_theme_support`" when including `add_editor_style
 ('editor-styles')`. Only Twenty Nineteen and Twenty Twenty-One have
 `add_theme_support` before `add_editor_style`.

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


More information about the wp-trac mailing list