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:


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:
See code docs:

Change History (5)

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

4 weeks ago

  • Keywords has-patch added

@audrasjb commented on PR #6308:

4 weeks ago

This will require a Unit test update, too.

@Soean commented on PR #6308:

4 weeks ago

@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.