@@ -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 | /** |
@@ -75,7 +75,9 @@ discard block |
||
75 | 75 | $styles = array_filter($this->stylesheets, array( $this, 'filter_print' ) ); |
76 | 76 | |
77 | 77 | // Bail if there are no styles to be printed |
78 | - if( count( $styles ) === 0 ) return; |
|
78 | + if( count( $styles ) === 0 ) { |
|
79 | + return; |
|
80 | + } |
|
79 | 81 | |
80 | 82 | $compiled_css = $this->compile_styles( $styles ); |
81 | 83 | |
@@ -142,7 +144,9 @@ discard block |
||
142 | 144 | foreach( $styles as $style ) |
143 | 145 | { |
144 | 146 | $css = file_get_contents( $style['path'] ); |
145 | - if( $style['minify'] ) $css = $this->minify_css ( $css ); |
|
147 | + if( $style['minify'] ) { |
|
148 | + $css = $this->minify_css ( $css ); |
|
149 | + } |
|
146 | 150 | $compiled_css .= $this->compile_css( $css, $this->callbacks[$style['handle']] )."\n"; |
147 | 151 | } |
148 | 152 | return $compiled_css; |