WordPress.org

Make WordPress Core

Changeset 47235


Ignore:
Timestamp:
02/10/2020 05:14:18 AM (8 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r47215 r47235  
    13991399                $result['label'] = __( 'Your site is set to log errors to a potentially public file.' );
    14001400
    1401                 $result['status'] = 'critical';
     1401                $result['status'] = ( 0 === strpos( ini_get( 'error_log' ), ABSPATH ) ) ? 'critical' : 'recommended';
    14021402
    14031403                $result['description'] .= sprintf(
Note: See TracChangeset for help on using the changeset viewer.