[wp-trac] [WordPress Trac] #64150: Late-printed styles are not hoisted to HEAD if wp-block-library is not enqueued
WordPress Trac
noreply at wordpress.org
Mon Oct 27 18:52:12 UTC 2025
#64150: Late-printed styles are not hoisted to HEAD if wp-block-library is not
enqueued
--------------------------------------+--------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.9
Component: Script Loader | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Comment (by westonruter):
@Soean Got it. OK, so what if we also modified
`wp_hoist_late_printed_styles()` to only filter
`should_load_separate_core_block_assets` and
`should_load_block_assets_on_demand` to `true` if `current_theme_supports(
'wp-block-styles' )`? I just amended the [https://github.com/WordPress
/wordpress-develop/pull/10417 PR] with a [https://github.com/WordPress
/wordpress-
develop/pull/10417/commits/e4bd8c70000b2ad65e72706e937e3db5131804f1
commit] to do that. If you could validate that it addresses your concerns
and fixes the issue for you, that would be great.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64150#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list