Skip to content

Commit f49a95a

Browse files
committed
Move default values for class properties to definitions
1 parent efb6cab commit f49a95a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 6 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;
40+
private ?bool $wp_debug_display = null;
4141

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

4848
/**
4949
* WP_Site_Health constructor.
@@ -74,13 +74,9 @@ 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;
7977
}
8078
if ( defined( 'WP_DEBUG_DISPLAY' ) && is_bool( WP_DEBUG_DISPLAY ) ) {
8179
$this->wp_debug_display = WP_DEBUG_DISPLAY;
82-
} else {
83-
$this->wp_debug_display = null;
8480
}
8581
}
8682

0 commit comments

Comments
 (0)