[wp-trac] [WordPress Trac] #46981: Bundled themes should pass version to wp_enqueue_script() to ensure proper cache busting

WordPress Trac noreply at wordpress.org
Thu Apr 18 17:37:31 UTC 2019


#46981: Bundled themes should pass version to wp_enqueue_script() to ensure proper
cache busting
--------------------------+-------------------------
 Reporter:  dswebsme      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.2.1
Component:  Themes        |    Version:  5.1.1
 Severity:  minor         |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-------------------------
 Bundled themes should pass the current theme version (`$ver` parameter) to
 wp_enqueue_script() to ensure theme stylesheets properly bypass cache
 after being updated.

 Original DEV discussion (related to stylesheets) took place here: #39997

 In this discussion script enqueues were mentioned briefly but could
 definitely benefit from cache busting as well.

 This affects themes `twentyten` - `twentyseventeen`. Bundled theme
 `twentynineteen` already passes a dynamic `$ver` parameter.

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


More information about the wp-trac mailing list