diff --git a/Util_Environment.php b/Util_Environment.php index b7e1d5cbf..9a1855d86 100644 --- a/Util_Environment.php +++ b/Util_Environment.php @@ -743,6 +743,7 @@ public static function document_root() { if ( $docroot_fix ) { $document_root = untrailingslashit( ABSPATH ); + $document_root = self::normalize_path( $document_root ); return $document_root; } @@ -756,6 +757,7 @@ public static function document_root() { if ( substr( $script_filename, -strlen( $php_self ) ) === $php_self ) { $document_root = substr( $script_filename, 0, -strlen( $php_self ) ); $document_root = realpath( $document_root ); + $document_root = self::normalize_path( $document_root ); return $document_root; } } @@ -773,6 +775,7 @@ public static function document_root() { } $document_root = realpath( $document_root ); + $document_root = self::normalize_path( $document_root ); return $document_root; }