Opened 8 weeks ago
Last modified 8 weeks ago
#62734 new defect (bug)
Regression in custom CSS loading order for `wp_enqueue_global_styles()`
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.7 |
Component: | Editor | Keywords: | needs-patch dev-feedback has-screenshots |
Focuses: | css | Cc: |
Description
In changeset [58703] / #61395, the behaviour of the wp_enqueue_global_styles()
function was altered as part of WordPress 6.7. This change affects how global styles' custom CSS is output.
Previous behaviour (Before 6.7):
Global styles' custom CSS was appended at the end of the inline CSS, ensuring it loaded after individual block styles.
Current behaviour (After 6.7):
Following the changes introduced in [58703], the custom CSS now loads before the individual block styles, potentially affecting styling and overriding expectations for CSS specificity and hierarchy.
Attachments (3)
Change History (5)
Note: See
TracTickets for help on using
tickets.
WP 6.6.2 behaviour