diff --git a/core/Carbon_Fields.php b/core/Carbon_Fields.php index 12215193..7321819f 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 ) {