[wp-trac] [WordPress Trac] #64526: Twenty Twenty-One: consistently use theme version when enqueueing resources

WordPress Trac noreply at wordpress.org
Sat Jan 17 20:12:38 UTC 2026


#64526: Twenty Twenty-One: consistently use theme version when enqueueing resources
---------------------------+------------------------------
 Reporter:  sabernhardt    |       Owner:  (none)
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Bundled Theme  |     Version:
 Severity:  minor          |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by sabernhardt):

 - In [https://github.com/WordPress/twentytwentyone/pull/773 PR 773], all 4
 dark mode resources used '1.0.0' as the version string.
 - [49574] switched the stylesheet to \\{{{wp_enqueue_style( 'tt1-dark-
 mode', $url, array( 'twenty-twenty-one-style' ), wp_get_theme()->get(
 'Version' ) ); // @phpstan-ignore-line. Version is always a string.}}}

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


More information about the wp-trac mailing list