From d98fe66044ae43847d2734cf402ec079247a037f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 10 Feb 2020 05:16:07 +0000 Subject: [PATCH] Site Health: Move the warning about `WP_DEBUG_LOG` being publicly accessible from "critical issues" to "recommended improvements" if the error log is outside of the WordPress directory. Props afragen, Clorith, miss_jwo, mikeschroder, kubiq, xkon. Fixes #47985. Built from https://develop.svn.wordpress.org/trunk@47235 git-svn-id: http://core.svn.wordpress.org/trunk@47035 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index b337d94dae..7041ab3016 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -1398,7 +1398,7 @@ class WP_Site_Health { if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) { $result['label'] = __( 'Your site is set to log errors to a potentially public file.' ); - $result['status'] = 'critical'; + $result['status'] = ( 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ) ? 'critical' : 'recommended'; $result['description'] .= sprintf( '

%s

', diff --git a/wp-includes/version.php b/wp-includes/version.php index f3c3ba0718..9282d12581 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47234'; +$wp_version = '5.4-alpha-47235'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.