[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 09:41:51 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:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:  6.4
 Severity:  normal         |   Keywords:
  Focuses:  css            |
---------------------------+-----------------------------
 We use the following code in v6.3.2 and earlier to force the loading of
 `/wp-includes/css/dist/block-library/style.min.css` so that manually
 inserted blocks such as the Cover block or Columns block (via custom
 shortcodes) can still benefit from their block styles ...

 {{{
 add_action('setup_theme', 'my_setup_theme');

 function my_setup_theme() {

          add_filter('should_load_separate_core_block_assets',
 '__return_false');

 }
 }}}

 This no longer works in v6.4.1 and `/wp-includes/css/dist/block-
 library/style.min.css` is not loaded.

 We are using Twenty Twenty-Two theme.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59862>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list