From 2ecba70f9d72bb6bdc13c5b822b792ef9e677b71 Mon Sep 17 00:00:00 2001 From: Skylar Bolton Date: Wed, 12 May 2021 07:19:44 -0600 Subject: [PATCH] Add check for wpscss_setting --- class/class-wp-scss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/class/class-wp-scss.php b/class/class-wp-scss.php index 54c157b..a5e8095 100644 --- a/class/class-wp-scss.php +++ b/class/class-wp-scss.php @@ -159,7 +159,7 @@ function compiler($in, $out, $instance) { */ public function needs_compiling() { global $wpscss_settings; - if (defined('WP_SCSS_ALWAYS_RECOMPILE') && WP_SCSS_ALWAYS_RECOMPILE || $wpscss_settings['always_recompile'] === "1") { + if (defined('WP_SCSS_ALWAYS_RECOMPILE') && WP_SCSS_ALWAYS_RECOMPILE || isset($wpscss_settings['always_recompile']) ? $wpscss_settings['always_recompile'] === "1" : false) { return true; }