Skip to content

Commit

Permalink
Normalize location path
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Apr 2, 2024
1 parent cea1783 commit be09b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Checker/Checks/Abstract_File_Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private static function file_get_contents( $file ) {
* @return array List of absolute file paths.
*/
private static function get_files( Check_Context $plugin ) {
$location = $plugin->location();
$location = wp_normalize_path( $plugin->location() );

if ( isset( self::$file_list_cache[ $location ] ) ) {
return self::$file_list_cache[ $location ];
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ In any case, passing the checks in this tool likely helps to achieve a smooth pl

= 1.0.2 =

* Fix - Correct detection of readme files in Windows
* Fix - Correct detection of readme files in Windows by normalizing file paths.

= 1.0.1 =

Expand Down

0 comments on commit be09b4c

Please sign in to comment.