[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
Wed Oct 29 23:05:33 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: closed
Priority: normal | Milestone: 6.9
Component: Script Loader | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Comment (by westonruter):
There's a complication to using `current_theme_supports( 'wp-block-styles'
)` as the signal for whether opt-in to loading separate block styles on
demand. It doesn't work with Twenty Twenty, which is the only bundled
theme which doesn't add this theme support.
We need to decouple `wp-block-styles` theme support from whether
`should_load_separate_core_block_assets` and
`should_load_block_assets_on_demand` are enabled. Enabling the latter
should not cause any styles to be printed.
More: https://core.trac.wordpress.org/ticket/64166#comment:2
cc @Soean
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64150#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list