Opened 11 years ago
Closed 11 years ago
#6213 closed defect (bug) (fixed)
buddypress.css is never minified
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.3 | Priority: | normal |
| Severity: | major | Version: | |
| Component: | Appearance - Template Pack | Keywords: | |
| Cc: |
Description
in enqueue_styles() it checks, whether the minified version should be included:
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
But in locate_asset_in_stack() the ".min" will always be stripped, e.g.:
$locations['bp-legacy'] = array(
'dir' => bp_get_theme_compat_dir(),
'uri' => bp_get_theme_compat_url(),
'file' => str_replace( '.min', '', $file )
);
I don't think the str_replace should be there, should it? Even buddypress.org itself doesn't deliver the minified stylesheets.
Change History (5)
#2
@
11 years ago
- Keywords dev-feedback removed
- Milestone changed from Under Consideration to 2.3
- Severity changed from normal to major
#3
@
11 years ago
Paul, see #5888.
I believe the goal was to allow bp-legacy's stylesheet to continue being minified. Though, if a theme was overriding buddypress.css, we do not look for the minified asset since not all themes will minify their CSS, which was causing the original issue in #5888.
Update: Looks like Dennis is referring to r9092 (see #5963).
We should probably revert r9092 or look for a better fix.
Erm. @r-a-y can you remember what the
.minfix was for? I know you fixed something I broke when we introduced Grunt.