Skip to content

Commit a57fe0e

Browse files
Copilotdd32
andcommitted
Fix Windows path separator issue in handle_imports
Co-authored-by: dd32 <767313+dd32@users.noreply.github.com>
1 parent 907b62a commit a57fe0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

class.add-from-server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function handle_imports() {
135135
foreach ( (array)$files as $file ) {
136136
$filename = trailingslashit( $root ) . ltrim( $file, '/' );
137137

138-
if ( $filename !== realpath( $filename ) ) {
138+
if ( wp_normalize_path( $filename ) !== wp_normalize_path( realpath( $filename ) ) ) {
139139
continue;
140140
}
141141

0 commit comments

Comments
 (0)