[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:16:32 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 Soean):

 No, the function `wp_common_block_scripts_and_styles()` enqueues `wp-
 block-library` on every theme. Regardless of the `add_theme_support( 'wp-
 block-styles' )`

 https://developer.wordpress.org/reference/functions/wp_common_block_scripts_and_styles/

 This is why so many themes use `wp_deregister_style( 'wp-block-library'
 );`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64150#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list