Skip to content

Commit

Permalink
Merge pull request #189 from ConnectThink/sb-add-recompile-check
Browse files Browse the repository at this point in the history
Add check for wpscss_setting
  • Loading branch information
shadoath authored May 18, 2021
2 parents 8126215 + 2ecba70 commit 3edb476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class/class-wp-scss.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3edb476

Please sign in to comment.