From faf1c5443549dc91ca633acf2c64e2d7c5a406d0 Mon Sep 17 00:00:00 2001 From: kagg-design Date: Thu, 29 Aug 2024 15:20:27 +0300 Subject: [PATCH] Fix excluding dirs on Windows. --- includes/Checker/Checks/Abstract_File_Check.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Checker/Checks/Abstract_File_Check.php b/includes/Checker/Checks/Abstract_File_Check.php index 582e50471..d693a0376 100644 --- a/includes/Checker/Checks/Abstract_File_Check.php +++ b/includes/Checker/Checks/Abstract_File_Check.php @@ -286,7 +286,7 @@ private static function get_files( Check_Context $plugin ) { continue; } - $file_path = $file->getPathname(); + $file_path = wp_normalize_path( $file->getPathname() ); $directories_to_ignore = Plugin_Request_Utility::get_directories_to_ignore();