diff --git a/class/class-wp-scss.php b/class/class-wp-scss.php index e39c78e..d9af2d0 100644 --- a/class/class-wp-scss.php +++ b/class/class-wp-scss.php @@ -153,7 +153,7 @@ public function needs_compiling() { $latest_scss = 0; $latest_css = 0; - foreach ( new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->scss_dir)) as $sfile ) { + foreach ( new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->scss_dir), FilesystemIterator::SKIP_DOTS) as $sfile ) { if (pathinfo($sfile->getFilename(), PATHINFO_EXTENSION) == 'scss') { $file_time = $sfile->getMTime(); @@ -163,7 +163,7 @@ public function needs_compiling() { } } - foreach ( new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->css_dir)) as $cfile ) { + foreach ( new RecursiveIteratorIterator(new RecursiveDirectoryIterator($this->css_dir), FilesystemIterator::SKIP_DOTS) as $cfile ) { if (pathinfo($cfile->getFilename(), PATHINFO_EXTENSION) == 'css') { $file_time = $cfile->getMTime();