File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -281,15 +281,18 @@ private static function get_files( Check_Context $plugin ) {
281
281
self ::$ file_list_cache [ $ location ][] = $ location ;
282
282
} else {
283
283
$ iterator = new RecursiveIteratorIterator ( new RecursiveDirectoryIterator ( $ location ) );
284
+
285
+ $ directories_to_ignore = Plugin_Request_Utility::get_directories_to_ignore ();
286
+
287
+ $ files_to_ignore = Plugin_Request_Utility::get_files_to_ignore ();
288
+
284
289
foreach ( $ iterator as $ file ) {
285
290
if ( ! $ file ->isFile () ) {
286
291
continue ;
287
292
}
288
293
289
294
$ file_path = wp_normalize_path ( $ file ->getPathname () );
290
295
291
- $ directories_to_ignore = Plugin_Request_Utility::get_directories_to_ignore ();
292
-
293
296
// Flag to check if the file should be included or not.
294
297
$ include_file = true ;
295
298
@@ -301,8 +304,6 @@ private static function get_files( Check_Context $plugin ) {
301
304
}
302
305
}
303
306
304
- $ files_to_ignore = Plugin_Request_Utility::get_files_to_ignore ();
305
-
306
307
foreach ( $ files_to_ignore as $ ignore_file ) {
307
308
if ( str_ends_with ( $ file_path , "/ $ ignore_file " ) ) {
308
309
$ include_file = false ;
You can’t perform that action at this time.
0 commit comments