@@ -26,7 +26,9 @@ |
||
26 | 26 | /** |
27 | 27 | * Prevent loading the library more than once |
28 | 28 | */ |
29 | -if( defined( 'WP_DYNAMIC_CSS' ) ) return; |
|
29 | +if( defined( 'WP_DYNAMIC_CSS' ) ) { |
|
30 | + return; |
|
31 | +} |
|
30 | 32 | define( 'WP_DYNAMIC_CSS', true ); |
31 | 33 | |
32 | 34 | /** |
@@ -171,7 +171,9 @@ |
||
171 | 171 | } |
172 | 172 | |
173 | 173 | $css = file_get_contents( $style['path'] ); |
174 | - if( $style['minify'] ) $css = $this->minify_css( $css ); |
|
174 | + if( $style['minify'] ) { |
|
175 | + $css = $this->minify_css( $css ); |
|
176 | + } |
|
175 | 177 | $compiled_css = $this->compile_css( $css, $this->callbacks[$style['handle']] ); |
176 | 178 | $cache->update( $style['handle'], $compiled_css ); |
177 | 179 | return $compiled_css; |