Opened 3 years ago
Closed 3 years ago
#60779 closed enhancement (fixed)
Twenty Twenty: use $theme_version variable for font stylesheet
| Reported by: | sabernhardt | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.6 |
| Component: | Bundled Theme | Version: | |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
Description
When [57311] added a font stylesheet,
wp_get_theme()->get( 'Version' )
identified the theme version within wp_enqueue_style().
twentytwenty_register_styles()already has a$theme_versionvariable for use with other stylesheets, and it could be reused.twentytwenty_block_editor_styles()is the only function that includeswp_get_theme()->get( 'Version' )without declaring the variable, and now the function uses it twice.twentytwenty_register_scripts()andtwentytwenty_customize_preview_init()have the variable but only use it once each.
Attachments (1)
Change History (4)
#1
@
3 years ago
- Keywords has-patch added
For 60779.diff, I chose consistency. With that, all five of the enqueuing functions declare and use the $theme_version variable.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
uses $theme_version variable in twentytwenty_register_styles() and adds the variable in twentytwenty_block_editor_styles()