Pre-set minified extensions

This commit is contained in:
Jay Wood
2016-09-30 11:48:17 -04:00
parent ba9ef3ed42
commit 8e88baee1a

View File

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