[wp-trac] [WordPress Trac] #39997: Bundled Themes: Pass theme version number to wp_enqueue_style()

WordPress Trac noreply at wordpress.org
Wed Apr 17 19:32:38 UTC 2019


#39997: Bundled Themes: Pass theme version number to wp_enqueue_style()
-------------------------------------+-----------------------
 Reporter:  parsmizban               |       Owner:  desrosj
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  5.2
Component:  Bundled Theme            |     Version:  4.7.2
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------
Changes (by desrosj):

 * keywords:  has-patch => has-patch needs-refresh


Comment:

 Replying to [comment:34 dswebsme]:
 > Is your audit suggesting that we should continue using the hardcoded
 (corrected) dates instead

 Correct! This would ensure maximum backward compatibility, which is a goal
 of the bundled themes. Even though Twenty Twelve and newer were released
 after `wp_get_theme()` was introduced, it is possible that a site running
 an older version of WordPress could install a newer default theme. Since
 Twenty Nineteen was already introduced using `wp_get_theme()`, and
 specifically designed to showcase the block editor, it should be OK to
 leave that one as is.

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


More information about the wp-trac mailing list