Opened 4 weeks ago
Closed 4 weeks ago
#64526 closed enhancement (fixed)
Twenty Twenty-One: consistently use theme version when enqueueing resources
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Bundled Theme | Keywords: | has-patch |
| Focuses: | Cc: |
Description
previously mentioned on PR 10493
Twenty Twenty-One uses wp_get_theme()->get( 'Version' ) for most of its styles and scripts, but three dark mode scripts have a string of 1.0.0.
The string could be changed to modified dates, as Twenty Ten through Twenty Seventeen use for their blocks.css and similar files. However, I prefer making the version consistent within the Twenty Twenty-One theme.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
wp_enqueue_style( 'tt1-dark-mode', $url, array( 'twenty-twenty-one-style' ), wp_get_theme()->get( 'Version' ) ); // @phpstan-ignore-line. Version is always a string.