Make WordPress Core

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: mukesh27's profile mukesh27 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)

wp662.png (1.3 MB) - added by mukesh27 8 weeks ago.
WP 6.6.2 behaviour
wp67.png (1.4 MB) - added by mukesh27 8 weeks ago.
WP 6.7 behaviour
wp-6.7.1.png (279.2 KB) - added by sumitsingh 8 weeks ago.
SS from version 6.7.1

Change History (5)

@mukesh27
8 weeks ago

WP 6.6.2 behaviour

@mukesh27
8 weeks ago

WP 6.7 behaviour

#1 @mukesh27
8 weeks ago

  • Keywords has-screenshots added

#2 @sumitsingh
8 weeks ago

Hi @mukesh27 ,

I have checked its true. here my SS with 6.7.1 version. i have shered my Screenshot too.

@sumitsingh
8 weeks ago

SS from version 6.7.1

Note: See TracTickets for help on using tickets.