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

WordPress Trac noreply at wordpress.org
Tue Apr 16 15:14:54 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      |     Focuses:
---------------------------+-----------------------
Changes (by obenland):

 * keywords:  has-patch commit => has-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Based on
 [https://developer.wordpress.org/reference/functions/wp_get_theme/ the
 function reference], [45213] seems backwards incompatible for Twenty Ten
 and Twenty Eleven, as they were introduced before `wp_get_theme()` was.

 More of an edge case, but worth considering: Going from a date-based cache
 bust to a version-based one will make testing themes in trunk harder or
 we'll need alpha theme versions.

 Maybe it would be sufficient to add a (date-based) version to enqueuing
 calls that don't specifically define one and leave the rest be?

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


More information about the wp-trac mailing list