WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#12274 closed feature request (worksforme)

get_themes() Support for gzipped style.css

Reported by: stalkerX 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)

comment:1 scribu4 years ago

  • Milestone 3.0 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

You can easily do this by adding a filter to 'stylesheet_uri' (also located in wp-includes/theme.php).

Note: See TracTickets for help on using tickets.