Make WordPress Core

Ticket #47985: 47985.3.diff

File 47985.3.diff, 632 bytes (added by afragen, 5 years ago)

more specific patch refresh

  • wp-admin/includes/class-wp-site-health.php

    diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php
    index 27b29ad76f..055e0c1046 100644
    a b class WP_Site_Health { 
    13201320                        if ( defined( 'WP_DEBUG_LOG' ) && WP_DEBUG_LOG ) {
    13211321                                $result['label'] = __( 'Your site is set to log errors to a potentially public file.' );
    13221322
    1323                                 $result['status'] = 'critical';
     1323                                $result['status'] = 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ? 'critical' : 'recommended';
    13241324
    13251325                                $result['description'] .= sprintf(
    13261326                                        '<p>%s</p>',