Inconsitency to core: theme support feature 'editor-styles' <-> 'editor-style' #12169
Labels
[Feature] Custom Editor Styles
Functionality for adding custom editor styles
Needs Technical Feedback
Needs testing from a developer perspective.
[Type] Developer Documentation
Documentation for developers
Describe the bug
When Gutenberg is collecting the styles to be loaded into the editor, theme support for the feature
editor-styles
determines whether styles from the global variable$editor_styles
are loaded inlib/client-assets.php
:When using the core function
add_editor_style()
to add stylesheets to the$editor_styles
global, the function sets theme support for the featureeditor-style
(note, this time without "s" at the end):The problem is, stylesheets added via
add_editor_style()
will not get loaded in Gutenberg unless separately setting support foreditor-styles
(with "s" at the end):To Reproduce
Steps to reproduce the behavior:
add_editor_style()
add_theme_support( 'editor-styles' );
Expected behavior
add_editor_style()
should be enough to apply the stylesheet in both editors, so Gutenberg should be checkingcurrent_theme_supports( 'editor-style' )
.Desktop
Additional context
The text was updated successfully, but these errors were encountered: