[wp-trac] [WordPress Trac] #39997: Bundled Themes: Pass theme version number to wp_enqueue_style()
WordPress Trac
noreply at wordpress.org
Tue Apr 16 14:55:55 UTC 2019
#39997: Bundled Themes: Pass theme version number to wp_enqueue_style()
------------------------------+----------------------
Reporter: parsmizban | Owner: desrosj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.2
Component: Bundled Theme | Version: 4.7.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+----------------------
Changes (by desrosj):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"45213" 45213]:
{{{
#!CommitTicketReference repository="" revision="45213"
Bundled Themes: Use the theme version when enqueuing theme specific
stylesheets.
For many bundled theme related stylesheets, a version is either not
specified, or specified as a hardcoded date string when enqueued. This is
problematic when a stylesheet is updated and the version number is not
(which has happened several times recently). This change ensures that all
bundled theme related stylesheets use the theme’s version as the
stylesheet version. This ensures cache busting for theme stylesheets every
time a theme is updated and guarantees that users receive any new or
updated styles included in the update when visiting the site for the first
time after an update.
Props parsmizban, ianbelanger, dswebsme.
Fixes #39997.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39997#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list