Opened 14 years ago
Closed 14 years ago
#12274 closed feature request (worksforme)
get_themes() Support for gzipped style.css
Reported by: | anonymized_166966 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | low | |
Severity: | normal | Version: | |
Component: | Themes | Keywords: | css, theme, stylesheet |
Focuses: | Cc: |
Description
Please add support for style.css.gz and style.gz.css as theme default stylesheet file.
Core file: theme.php
Lines: 585 & 562
Before:
if ( $theme_file == 'style.css' ) {
After:
if ( in_array($theme_file, array('style.css', 'style.css.gz', 'style.gz.css')) ) {
Change History (1)
Note: See
TracTickets for help on using
tickets.
You can easily do this by adding a filter to 'stylesheet_uri' (also located in wp-includes/theme.php).