From 8bc6c76bcf50c23fc1cec0ccbdf027bd210932ee Mon Sep 17 00:00:00 2001 From: Mark McEver Date: Tue, 20 Dec 2016 10:27:26 -0600 Subject: [PATCH] Made the missing directory warning also display if a specified path is a file --- wp-scss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-scss.php b/wp-scss.php index b1e26fd8..b8d120a3 100644 --- a/wp-scss.php +++ b/wp-scss.php @@ -116,7 +116,7 @@ function wpscss_settings_error() { return 0; //exits // Checks if directory exists -} elseif ( !file_exists(WPSCSS_THEME_DIR . $scss_dir_setting) || !file_exists(WPSCSS_THEME_DIR . $css_dir_setting) ) { +} elseif ( !is_dir(WPSCSS_THEME_DIR . $scss_dir_setting) || !is_dir(WPSCSS_THEME_DIR . $css_dir_setting) ) { function wpscss_settings_error() { echo '

Wp-Scss: One or more specified directories does not exist. Please create the directories or update your settings.