From ab5693f9f0f5b70213b2549bf08d56d901795cbb Mon Sep 17 00:00:00 2001 From: costdev Date: Mon, 3 Jun 2024 21:39:08 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@58309 git-svn-id: http://core.svn.wordpress.org/trunk@57766 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-automatic-updater.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index 4692eab9f3..e8c8c3189a 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -649,7 +649,7 @@ class WP_Automatic_Updater { return; } - $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY; + $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( $is_debug ) { error_log( 'Automatic updates starting...' ); @@ -1763,7 +1763,7 @@ Thanks! -- The WordPress Team" // Time to wait for loopback request to finish. $timeout = 50; // 50 seconds. - $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY; + $is_debug = WP_DEBUG && WP_DEBUG_LOG; if ( $is_debug ) { error_log( ' Scraping home page...' ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 315f999d18..7ee0ac5104 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-58308'; +$wp_version = '6.6-alpha-58309'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.