Make WordPress Core

Changeset 45079


Ignore:
Timestamp:
04/01/2019 01:25:06 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Site Health: If WP_DEBUG_LOG contains a file path, display it on Site Info tab.

Props xkon, knutsp, ocean90.
Fixes #46692.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45078 r45079  
    194194                    'WP_DEBUG_LOG'        => array(
    195195                        'label' => 'WP_DEBUG_LOG',
    196                         'value' => ( ! defined( 'WP_DEBUG_LOG' ) ? __( 'Undefined' ) : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ),
     196                        'value' => ( is_string( WP_DEBUG_LOG ) ? WP_DEBUG_LOG : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ),
    197197                    ),
    198198                    'SCRIPT_DEBUG'        => array(
Note: See TracChangeset for help on using the changeset viewer.