[wp-trac] [WordPress Trac] #61892: Enqueue `classic-theme-styles` earlier in editor styles
WordPress Trac
noreply at wordpress.org
Thu Mar 13 22:58:41 UTC 2025
#61892: Enqueue `classic-theme-styles` earlier in editor styles
--------------------------+-----------------------
Reporter: sabernhardt | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.8
Component: Themes | Version: 6.1
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+-----------------------
Changes (by audrasjb):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"59980" 59980]:
{{{
#!CommitTicketReference repository="" revision="59980"
Themes: Enqueue `classic-theme-styles` in `enqueue_block_assets`.
[54687] introduced a fallback stylesheet for Button block styles (and
later File blocks) for both the front end and the editor. In the editor,
that has been added within the body, after the theme's block styles. That
commit had quick fixes for Twenty Twelve and Twenty Twenty, but raising
the specificity for those colors should have been unnecessary. Also,
themes such as Twenty Fourteen — and non-bundled themes — still have had a
similar problem with the incorrect order.
Thus, this changeset:
- Registers the stylesheet outside `wp_enqueue_classic_theme_styles()`.
- Enqueues classic styles in the `enqueue_block_assets` action instead of
adding them in the `block_editor_settings_all` filter.
- Deprecates the `wp_add_editor_classic_theme_styles()` function.
Follow-up to [54687].
Props sabernhardt, mukesh27.
Fixes #61892.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61892#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list