@@ -71,7 +71,9 @@ |
||
| 71 | 71 | $styles = array_filter($this->stylesheets, array( $this, 'filter_print' ) ); |
| 72 | 72 | |
| 73 | 73 | // Bail if there are no styles to be printed |
| 74 | - if( count( $styles ) === 0 ) return; |
|
| 74 | + if( count( $styles ) === 0 ) { |
|
| 75 | + return; |
|
| 76 | + } |
|
| 75 | 77 | |
| 76 | 78 | foreach( $styles as $style ) |
| 77 | 79 | { |
@@ -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 | /** |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @package WordPress Dynamic CSS |
|
| 4 | - * @version 1.0.2 |
|
| 5 | - * @author Askupa Software <[email protected]> |
|
| 6 | - * @link https://github.com/askupasoftware/wp-dynamic-css |
|
| 7 | - * @copyright 2016 Askupa Software |
|
| 8 | - */ |
|
| 3 | + * @package WordPress Dynamic CSS |
|
| 4 | + * @version 1.0.2 |
|
| 5 | + * @author Askupa Software <[email protected]> |
|
| 6 | + * @link https://github.com/askupasoftware/wp-dynamic-css |
|
| 7 | + * @copyright 2016 Askupa Software |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | if( !function_exists('wp_dynamic_css_enqueue') ) |
| 11 | 11 | { |