diff --git a/class.add-from-server.php b/class.add-from-server.php index b63afe5..377e06c 100644 --- a/class.add-from-server.php +++ b/class.add-from-server.php @@ -135,7 +135,8 @@ function handle_imports() { foreach ( (array)$files as $file ) { $filename = trailingslashit( $root ) . ltrim( $file, '/' ); - if ( $filename !== realpath( $filename ) ) { + $realpath = realpath( $filename ); + if ( ! $realpath || wp_normalize_path( $filename ) !== wp_normalize_path( $realpath ) ) { continue; }