[wp-trac] [WordPress Trac] #60826: Fix incorrect use of add_theme_support( 'editor-style(s)' )
WordPress Trac
noreply at wordpress.org
Fri Mar 22 12:13:58 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: Awaiting Review
Component: Themes | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In the functions `add_editor_style()`, `remove_editor_styles()` and
`remove_theme_support()` the Theme `$feature` parameter`editor-style` is
used instead of `editor-styles`.
It should be: `add_theme_support( 'editor-styles' );`
See docs: https://developer.wordpress.org/block-editor/how-to-
guides/themes/theme-support/#editor-styles
See code docs: https://github.com/WordPress/wordpress-
develop/blob/8d0aed455b1790c5d51386f7675d9e8d68e48edf/src/wp-
includes/theme.php#L2672
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60826>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list