Repository navigation
Commit 54106f6
committed
Themes: Clarify 'editor-style' vs 'editor-styles' documentation.
WordPress themes can support both `editor-styles` (plural) for the block editor and `editor-style` (singular) for the TinyMCE/classic editors.
This improves the documentation of the `add_editor_style()` and `remove_editor_styles()` functions to use `add_theme_support( 'editor-styles' )` and `remove_theme_support( 'editor-styles' )` to add stylesheets to the block editor.
The tests for theme support are expanded to ensure that the subtle distinction is retained.
Props azaozz, chaion07, desrosj, hellofromtonya, khoipro, oglekler, sabernhardt, sergeybiryukov, soean, sukhendu2002.
Fixes #60826.
Built from https://develop.svn.wordpress.org/trunk@64693
git-svn-id: http://core.svn.wordpress.org/trunk@63843 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent 440d23a commit 54106f6
2 files changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2183 | 2183 | | |
2184 | 2184 | | |
2185 | 2185 | | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
2186 | 2194 | | |
2187 | 2195 | | |
2188 | 2196 | | |
| |||
2209 | 2217 | | |
2210 | 2218 | | |
2211 | 2219 | | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
2212 | 2227 | | |
2213 | 2228 | | |
2214 | 2229 | | |
| |||
3074 | 3089 | | |
3075 | 3090 | | |
3076 | 3091 | | |
3077 | | - | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
3078 | 3097 | | |
3079 | 3098 | | |
3080 | 3099 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments