[wp-trac] [WordPress Trac] #64166: Twenty Twenty: Update theme to add Gutenberg styles and support
WordPress Trac
noreply at wordpress.org
Wed Oct 29 00:47:32 UTC 2025
#64166: Twenty Twenty: Update theme to add Gutenberg styles and support
------------------------------+-------------------------
Reporter: westonruter | Owner: westonruter
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.9
Component: Bundled Theme | Version: 5.3
Severity: normal | Keywords: needs-patch
Focuses: css, performance |
------------------------------+-------------------------
I just discovered that the Twenty Twenty theme is lacking `wp-block-
styles` support. This is surprising because both Twenty Nineteen
([https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentynineteen/functions.php?rev=44149#L98 ref]) and Twenty
Twenty-One ([https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentytwentyone/functions.php?rev=49216#L121 ref]) both had
support as part of their initial commits, but not for the
[https://core.trac.wordpress.org/browser/trunk/src/wp-
content/themes/twentytwenty/functions.php?rev=46271 initial commit] for
Twenty Twenty.
The previous core themes all added support in separate tickets:
* #45038: Twenty Ten
* #45039: Twenty Eleven
* #45040: Twenty Twelve
* #45041: Twenty Thirteen
* #45042: Twenty Fourteen
* #45043: Twenty Fifteen
* #45044: Twenty Sixteen
* #45045: Twenty Seventeen
The missing `wp-block-styles` theme support didn't seem to have any effect
on Twenty Twenty because on the frontend this only has mattered if
`wp_should_load_separate_core_block_assets()` returns true in in which
case separate stylesheets are registered for each block in
`register_block_type_from_metadata()`.
The `wp-block-library-theme` stylesheet also gets enqueued via
`wp_common_block_scripts_and_styles()` when the theme supports `wp-block-
styles` (and `wp_should_load_separate_core_block_assets()` returns false).
With #64099 and #64150, the lack of `wp-block-styles` theme support means
that a theme cannot benefit from a reduction of CSS by inlining block
styles on demand and having them hoisted to `HEAD` via the template
enhancement output buffer (#43258).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/64166>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list