[wp-trac] [WordPress Trac] #53502: Twenty Twenty-One: Remove use of `filemtime()`

WordPress Trac noreply at wordpress.org
Thu Jun 24 14:33:19 UTC 2021


#53502: Twenty Twenty-One: Remove use of `filemtime()`
---------------------------+----------------------------------------
 Reporter:  desrosj        |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  5.8.1
Component:  Bundled Theme  |    Version:  5.6
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:                 |
---------------------------+----------------------------------------
 In Twenty Twenty-One, there are two instances of `filemtime()` to create a
 version number for a CSS or JS asset.

 This should be removed in favor of `wp_get_theme()->get( 'Version' )`.

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


More information about the wp-trac mailing list