Make WordPress Core

Opened 10 months ago

Last modified 7 months ago

#46981 closed defect (bug)

Bundled themes should pass version to wp_enqueue_script() to ensure proper cache busting — at Initial Version

Reported by: dswebsme Owned by:
Milestone: 5.3 Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: has-patch needs-testing
Focuses: Cc:


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.

Change History (0)

Note: See TracTickets for help on using tickets.