Skip to content

Commit

Permalink
Merge pull request #1097 from htmlburger/1096/realpath-load
Browse files Browse the repository at this point in the history
Change loading to use realpath()
  • Loading branch information
jorostoyanov committed May 5, 2022
2 parents dd5663e + cff200a commit 4814752
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Carbon_Fields.php
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 4814752

Please sign in to comment.