Skip to content

Commit 116df23

Browse files
committed
Revert "Move default values for class properties to definitions"
This reverts commit f49a95a.
1 parent f49a95a commit 116df23

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/wp-admin/includes/class-wp-site-health.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ class WP_Site_Health {
3737
/**
3838
* @since 7.0.0
3939
*/
40-
private ?bool $wp_debug_display = null;
40+
private ?bool $wp_debug_display;
4141

4242
/**
4343
* @since 7.0.0
4444
* @var string|bool
4545
*/
46-
private $wp_debug_log = false;
46+
private $wp_debug_log;
4747

4848
/**
4949
* WP_Site_Health constructor.
@@ -74,9 +74,13 @@ public function __construct() {
7474
$this->wp_debug = defined( 'WP_DEBUG' ) && WP_DEBUG;
7575
if ( defined( 'WP_DEBUG_LOG' ) && ( is_bool( WP_DEBUG_LOG ) || is_string( WP_DEBUG_LOG ) ) ) {
7676
$this->wp_debug_log = WP_DEBUG_LOG;
77+
} else {
78+
$this->wp_debug_log = false;
7779
}
7880
if ( defined( 'WP_DEBUG_DISPLAY' ) && is_bool( WP_DEBUG_DISPLAY ) ) {
7981
$this->wp_debug_display = WP_DEBUG_DISPLAY;
82+
} else {
83+
$this->wp_debug_display = null;
8084
}
8185
}
8286

0 commit comments

Comments
 (0)