Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#60826 new defect (bug)

Fix incorrect use of add_theme_support( 'editor-style(s)' )

Reported by: soean's profile Soean Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: has-patch
Focuses: Cc:

Description

In the functions add_editor_style(), remove_editor_styles() and remove_theme_support() the Theme $feature parametereditor-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

Change History (5)

This ticket was mentioned in PR #6308 on WordPress/wordpress-develop by @Soean.


4 weeks ago
#1

  • Keywords has-patch added

@audrasjb commented on PR #6308:


4 weeks ago
#2

This will require a Unit test update, too.

@Soean commented on PR #6308:


4 weeks ago
#4

@audrasjb I updated the tests and added a new test for editor styles.

#5 @sabernhardt
4 weeks ago

Related/duplicate: #51755

Note: See TracTickets for help on using tickets.