[wp-trac] [WordPress Trac] #59862: should_load_separate_core_block_assets filter no longer forces loading of block styles
WordPress Trac
noreply at wordpress.org
Thu Nov 9 11:52:22 UTC 2023
#59862: should_load_separate_core_block_assets filter no longer forces loading of
block styles
---------------------------+------------------------------
Reporter: domainsupport | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 6.4
Severity: normal | Resolution: wontfix
Keywords: | Focuses: css
---------------------------+------------------------------
Changes (by domainsupport):
* status: new => closed
* resolution: => wontfix
Comment:
I've found a fix for this whereby adding a priority of 11 to the filter
allows this to work again.
{{{#!php
<?php
add_action('setup_theme', 'my_setup_theme');
function my_setup_theme() {
add_filter('should_load_separate_core_block_assets',
'__return_false', 11);
}
}}}
I'm going to add my findings to the notes for the filter
https://developer.wordpress.org/reference/hooks/should_load_separate_core_block_assets/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59862#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list