[wp-trac] [WordPress Trac] #62734: Regression in custom CSS loading order for `wp_enqueue_global_styles()`

WordPress Trac noreply at wordpress.org
Mon Dec 23 05:24:19 UTC 2024


#62734: Regression in custom CSS loading order for `wp_enqueue_global_styles()`
--------------------------+--------------------------------------
 Reporter:  mukesh27      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  6.7
 Severity:  normal        |   Keywords:  needs-patch dev-feedback
  Focuses:  css           |
--------------------------+--------------------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62734>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list