From cff200a1fe93770baceca8e52a45d72645d968a9 Mon Sep 17 00:00:00 2001 From: jorostoyanov Date: Thu, 5 May 2022 10:01:54 +0300 Subject: [PATCH] Change loading to use realpath() --- core/Carbon_Fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Carbon_Fields.php b/core/Carbon_Fields.php index 12215193e..7321819fe 100644 --- a/core/Carbon_Fields.php +++ b/core/Carbon_Fields.php @@ -239,7 +239,7 @@ public static function directory_to_url( $directory ) { ); foreach ( $possible_locations as $test_dir => $test_url ) { - $test_dir_normalized = str_replace( '\\' ,'/', $test_dir ); + $test_dir_normalized = realpath( str_replace( '\\' ,'/', $test_dir ) ); $url = str_replace( $test_dir_normalized, $test_url, $url, $count ); if ( $count > 0 ) {