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
This commit is contained in:
parent
1f87d6b717
commit
ab5693f9f0
|
@ -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...' );
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue