Skip to content

Commit

Permalink
Merge pull request #694 from pbiron/cli-exclude-files-windows
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Oct 23, 2024
2 parents 9fca261 + 6fe5eb1 commit 341b335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Checker/Checks/Abstract_File_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ private static function get_files( Check_Context $plugin ) {
$files_to_ignore = Plugin_Request_Utility::get_files_to_ignore();

foreach ( $files_to_ignore as $ignore_file ) {
if ( str_ends_with( $file, "/$ignore_file" ) ) {
if ( str_ends_with( $file_path, "/$ignore_file" ) ) {
$include_file = false;
break;
}
}

if ( $include_file ) {
self::$file_list_cache[ $location ][] = wp_normalize_path( $file_path );
self::$file_list_cache[ $location ][] = $file_path;
}
}
}
Expand Down

0 comments on commit 341b335

Please sign in to comment.