From 12e0108d18d0abe5df2b7c2fe706b291fc5671e7 Mon Sep 17 00:00:00 2001 From: Quang Trung Date: Wed, 1 Aug 2018 16:42:56 +0700 Subject: [PATCH] Update class-wp-scss.php fix error when have dev folder like svn, git, node_modules --- class/class-wp-scss.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();