@@ -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,24 +1,24 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * WordPress Dynamic CSS |
|
4 | - * |
|
5 | - * Dynamic CSS compiler for WordPress |
|
6 | - * |
|
7 | - * @package wp-dynamic-css |
|
8 | - * @author Askupa Software <[email protected]> |
|
9 | - * @link https://github.com/askupasoftware/wp-dynamic-css |
|
10 | - * @copyright 2016 Askupa Software |
|
11 | - * |
|
12 | - * @wordpress-plugin |
|
13 | - * Plugin Name: WordPress Dynamic CSS |
|
14 | - * Plugin URI: https://github.com/askupasoftware/wp-dynamic-css |
|
15 | - * Description: Dynamic CSS compiler for WordPress |
|
16 | - * Version: 1.0.2 |
|
17 | - * Author: Askupa Software |
|
18 | - * Author URI: http://www.askupasoftware.com |
|
19 | - * Text Domain: wp-dynamic-css |
|
20 | - * Domain Path: /languages |
|
21 | - */ |
|
3 | + * WordPress Dynamic CSS |
|
4 | + * |
|
5 | + * Dynamic CSS compiler for WordPress |
|
6 | + * |
|
7 | + * @package wp-dynamic-css |
|
8 | + * @author Askupa Software <[email protected]> |
|
9 | + * @link https://github.com/askupasoftware/wp-dynamic-css |
|
10 | + * @copyright 2016 Askupa Software |
|
11 | + * |
|
12 | + * @wordpress-plugin |
|
13 | + * Plugin Name: WordPress Dynamic CSS |
|
14 | + * Plugin URI: https://github.com/askupasoftware/wp-dynamic-css |
|
15 | + * Description: Dynamic CSS compiler for WordPress |
|
16 | + * Version: 1.0.2 |
|
17 | + * Author: Askupa Software |
|
18 | + * Author URI: http://www.askupasoftware.com |
|
19 | + * Text Domain: wp-dynamic-css |
|
20 | + * Domain Path: /languages |
|
21 | + */ |
|
22 | 22 | |
23 | 23 | defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
24 | 24 |