Repository navigation
Commit 9f134f6
committed
Editor: Restore the default block editor styles.
Moves the default block editor styles into `get_default_block_editor_settings()` rather than attempting to read them from `wp-includes/css/dist/block-editor/default-editor-styles.css`.
The file's source was removed from the block editor package in WordPress/gutenberg@aee1d48, so the `defaultEditorStyles` setting was empty and the styles were missing in these places:
* The block editor, when a user turns off the theme styles preference.
* The Customizer's widgets editor.
The file's post title rule is not restored. The `.editor-post-title__block` class it targets was removed in WordPress 5.9.
The tests are updated to ensure the default editor styles are populated.
Developed in: #16118
Follow-up to r63535.
Reviewed by wildworks.
Props mukesh27, wildworks.
Fixes #66762.
git-svn-id: https://develop.svn.wordpress.org/trunk@65749 602fd350-edb4-49c9-b593-d223f7449a821 parent 5ae0af9 commit 9f134f6
2 files changed
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
212 | 209 | | |
213 | 210 | | |
214 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
| 304 | + | |
| 305 | + | |
303 | 306 | | |
304 | 307 | | |
305 | 308 | | |
| |||
0 commit comments