[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 15:10:00 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 Thanks for the feedback. Well, in that case I think you perhaps
 should just do:

 {{{#!php
 <?php
 add_filter( 'should_load_separate_core_block_assets', '__return_false' );
 }}}

 This will override what `wp_load_classic_theme_block_styles_on_demand()`
 does here:

 {{{#!php
 <?php
 add_filter( 'should_load_separate_core_block_assets', '__return_true', 0
 );
 }}}

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


More information about the wp-trac mailing list