From e4af00b43edb6a22f0a2cd267056dd485faed66b Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Tue, 13 Nov 2018 16:37:33 +0200 Subject: [PATCH] =?UTF-8?q?Adjusted=20paths=20to=20truncate=20for=20better?= =?UTF-8?q?=20order=20and=20drive=E2=80=93relative=20paths.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Formatter/Backtrace_Formatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formatter/Backtrace_Formatter.php b/src/Formatter/Backtrace_Formatter.php index c6a20c9..fb221bf 100644 --- a/src/Formatter/Backtrace_Formatter.php +++ b/src/Formatter/Backtrace_Formatter.php @@ -29,8 +29,8 @@ class Backtrace_Formatter { public function __construct() { $this->truncate_paths = [ - wp_normalize_path( ABSPATH ), - wp_normalize_path( WP_CONTENT_DIR ), + wp_normalize_path( realpath( WP_CONTENT_DIR ) ), + wp_normalize_path( realpath( ABSPATH ) ), 'wp-admin/', 'themes/', 'plugins/',