[wp-trac] [WordPress Trac] #64166: Twenty Twenty: Update theme to add Gutenberg styles separately and on-demand

WordPress Trac noreply at wordpress.org
Tue Nov 4 05:49:32 UTC 2025


#64166: Twenty Twenty: Update theme to add Gutenberg styles separately and on-
demand
---------------------------+-------------------------------
 Reporter:  westonruter    |       Owner:  westonruter
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  6.9
Component:  Bundled Theme  |     Version:  5.3
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |     Focuses:  css, performance
---------------------------+-------------------------------

Comment (by westonruter):

 Replying to [comment:7 westonruter]:
 > A better alternative which I haven't fully fleshed out yet:

 I'm mistaken here. I misread the logic in
 `register_block_type_from_metadata()`. Separate block styles ''are'' being
 registered even when the theme doesn't support `wp-block-styles`. It's
 just that the block theme style is only getting registered as well when
 `current_theme_supports( 'wp-block-styles' ) &&
 wp_should_load_separate_core_block_assets()`.

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


More information about the wp-trac mailing list