Add individual definition for script debug

This commit is contained in:
Champ Camba
2017-11-01 19:57:27 +08:00
parent 0ca717c836
commit 5a26f4f8a4
+2 -2
View File
@@ -36,8 +36,8 @@ if ( ! class_exists( 'Enqueue' ) ) {
function wp_enqueue_scripts() {
global $post;
$this->suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
$this->suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || defined('UM_SCRIPT_DEBUG') ) ? '' : '.min';
$exclude = um_get_option('js_css_exclude');
if ( is_array( $exclude ) ) {
array_filter( $exclude );