diff --git a/content-warning-v3.php b/content-warning-v3.php index f45f45b..3cfb786 100644 --- a/content-warning-v3.php +++ b/content-warning-v3.php @@ -47,6 +47,12 @@ class ContentWarning_v2 { const VERSION = '3.7'; + /** + * Rather or not scripts should be minified + * @var string + */ + public $min = ''; + /** * @var CWV2_Admin */ @@ -57,6 +63,10 @@ class ContentWarning_v2 { */ public $settings; + private function __construct() { + $this->min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + } + public static function init() { if ( null == self::$instance ) { self::$instance = new self();