Skip to content

Commit

Permalink
Site Health: Move the warning about WP_DEBUG_LOG being publicly acc…
Browse files Browse the repository at this point in the history
…essible 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@47235 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Feb 10, 2020
1 parent acb845d commit d321144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-site-health.php
Expand Up @@ -1398,7 +1398,7 @@ public function get_test_is_in_debug_mode() {
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(
'<p>%s</p>',
Expand Down

0 comments on commit d321144

Please sign in to comment.