@@ -20,14 +20,14 @@ discard block |
||
| 20 | 20 | * Domain Path: /languages |
| 21 | 21 | */ |
| 22 | 22 | |
| 23 | -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); |
|
| 23 | +defined('ABSPATH') or die('No script kiddies please!'); |
|
| 24 | 24 | |
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * Prevent loading the library more than once |
| 28 | 28 | */ |
| 29 | -if( defined( 'WP_DYNAMIC_CSS' ) ) return; |
|
| 30 | -define( 'WP_DYNAMIC_CSS', true ); |
|
| 29 | +if (defined('WP_DYNAMIC_CSS')) return; |
|
| 30 | +define('WP_DYNAMIC_CSS', true); |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Load required files |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * styles. |
| 43 | 43 | */ |
| 44 | 44 | $dcss = DynamicCSSCompiler::get_instance(); |
| 45 | -add_action( 'wp_print_styles', array( $dcss, 'compile_printed_styles' ), 100 ); |
|
| 46 | -add_action( 'wp_enqueue_scripts', array( $dcss, 'wp_enqueue_style' ), 100 ); |
|
| 47 | -add_action( 'wp_ajax_wp_dynamic_css', array( $dcss, 'compile_external_styles' ) ); |
|
| 48 | -add_action( 'wp_ajax_nopriv_wp_dynamic_css', array( $dcss, 'compile_external_styles' ) ); |
|
| 49 | 45 | \ No newline at end of file |
| 46 | +add_action('wp_print_styles', array($dcss, 'compile_printed_styles'), 100); |
|
| 47 | +add_action('wp_enqueue_scripts', array($dcss, 'wp_enqueue_style'), 100); |
|
| 48 | +add_action('wp_ajax_wp_dynamic_css', array($dcss, 'compile_external_styles')); |
|
| 49 | +add_action('wp_ajax_nopriv_wp_dynamic_css', array($dcss, 'compile_external_styles')); |
|
| 50 | 50 | \ No newline at end of file |