[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:11:50 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          |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 //previously mentioned on [https://github.com/WordPress/wordpress-
 develop/pull/10493#pullrequestreview-3506710046 PR 10493]//

 Twenty Twenty-One uses `wp_get_theme()->get( 'Version' )` for most of its
 styles and scripts, but three dark mode scripts have a string of `1.0.0`.

 The string could be changed to modified dates, as Twenty Ten through
 Twenty Seventeen use for their `blocks.css` and similar files. However, I
 prefer making the version consistent within the Twenty Twenty-One theme.

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


More information about the wp-trac mailing list