Make WordPress Core

Changeset 58309


Ignore:
Timestamp:
06/03/2024 09:37:37 PM (8 months ago)
Author:
costdev
Message:

Upgrade/Install: Make $is_debug consistent in WP_Automatic_Updater.

[58139] introduced debugging flags to ensure debugging output would only be shown when both the WP_DEBUG and WP_DEBUG_LOG constants are defined as true. However, some of the flags incorrectly use WP_DEBUG_DISPLAY rather than WP_DEBUG_LOG.

This fixes the flags to consistently use WP_DEBUG and WP_DEBUG_LOG as intended.

Follow-up to [58128], [58139].

Props rogermedia, afragen, swissspidy, costdev.
Fixes #58281.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-automatic-updater.php

    r58308 r58309  
    650650        }
    651651
    652         $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY;
     652        $is_debug = WP_DEBUG && WP_DEBUG_LOG;
    653653
    654654        if ( $is_debug ) {
     
    17641764        $timeout = 50; // 50 seconds.
    17651765
    1766         $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY;
     1766        $is_debug = WP_DEBUG && WP_DEBUG_LOG;
    17671767        if ( $is_debug ) {
    17681768            error_log( '    Scraping home page...' );
Note: See TracChangeset for help on using the changeset viewer.