[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
Wed May 8 17:26:15 UTC 2019


#46981: Bundled themes should pass version to wp_enqueue_script() to ensure proper
cache busting
---------------------------+-----------------------
 Reporter:  dswebsme       |       Owner:  dswebsme
     Type:  defect (bug)   |      Status:  assigned
 Priority:  normal         |   Milestone:  5.2.1
Component:  Bundled Theme  |     Version:  5.1.1
 Severity:  minor          |  Resolution:
 Keywords:  needs-patch    |     Focuses:
---------------------------+-----------------------
Description changed by dswebsme:

Old description:

> 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.

New description:

 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 all bundled themes.

--

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


More information about the wp-trac mailing list