From 5cca79f806af0828398c47acaf6a7e9e6b3e3ca2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 1 Apr 2019 01:26:51 +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. Built from https://develop.svn.wordpress.org/trunk@45079 git-svn-id: http://core.svn.wordpress.org/trunk@44888 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-debug-data.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 185c539f00..5db73343c6 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/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', diff --git a/wp-includes/version.php b/wp-includes/version.php index 69fabda352..4499ccabb3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-beta1-45078'; +$wp_version = '5.2-beta1-45079'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.