Make WordPress Core

Ticket #46692: 46692.3.diff

File 46692.3.diff, 1.0 KB (added by xkon, 6 years ago)
  • src/wp-admin/includes/class-wp-debug-data.php

    diff --git a/src/wp-admin/includes/class-wp-debug-data.php b/src/wp-admin/includes/class-wp-debug-data.php
    index a49ffc2922..7ffd34456e 100644
    a b class WP_Debug_Data { 
    6262                        }
    6363                }
    6464
     65                // Check if WP_DEBUG_LOG is defined.
     66                $wp_debug_log_value = __( 'Disabled' );
     67
     68                if ( is_string( WP_DEBUG_LOG ) ) {
     69                        $wp_debug_log_value = WP_DEBUG_LOG;
     70                } elseif ( WP_DEBUG_LOG ) {
     71                        $wp_debug_log_value = __( 'Enabled' );
     72                }
     73
    6574                // Set up the array that holds all debug information.
    6675                $info = array(
    6776                        'wp-core'             => array(
    class WP_Debug_Data { 
    193202                                        ),
    194203                                        'WP_DEBUG_LOG'        => array(
    195204                                                'label' => 'WP_DEBUG_LOG',
    196                                                 'value' => ( ! defined( 'WP_DEBUG_LOG' ) ? __( 'Undefined' ) : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ),
     205                                                'value' => $wp_debug_log_value,
    197206                                        ),
    198207                                        'SCRIPT_DEBUG'        => array(
    199208                                                'label' => 'SCRIPT_DEBUG',