From a795928e3b3e6bc9b76d175aff360187cf614cd4 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 1 Apr 2019 01:25:06 +0000 Subject: [PATCH] Site Health: If `WP_DEBUG_LOG` contains a file path, display it on Site Info tab. Props xkon, knutsp, ocean90. Fixes #46692. git-svn-id: https://develop.svn.wordpress.org/trunk@45079 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-debug-data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php index 185c539f00..5db73343c6 100644 --- a/src/wp-admin/includes/class-wp-debug-data.php +++ b/src/wp-admin/includes/class-wp-debug-data.php @@ -193,7 +193,7 @@ class WP_Debug_Data { ), 'WP_DEBUG_LOG' => array( 'label' => 'WP_DEBUG_LOG', - 'value' => ( ! defined( 'WP_DEBUG_LOG' ) ? __( 'Undefined' ) : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ), + 'value' => ( is_string( WP_DEBUG_LOG ) ? WP_DEBUG_LOG : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ), ), 'SCRIPT_DEBUG' => array( 'label' => 'SCRIPT_DEBUG',