diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php index b67d509a25..d5bb241d04 100644 --- a/src/wp-admin/includes/class-wp-site-health-auto-updates.php +++ b/src/wp-admin/includes/class-wp-site-health-auto-updates.php @@ -65,7 +65,7 @@ class WP_Site_Health_Auto_Updates { * @return array The test results. */ public function test_constants( $constant, $value ) { - if ( defined( $constant ) && constant( $constant ) != $value ) { + if ( defined( $constant ) && constant( $constant ) !== $value ) { return array( 'description' => sprintf( /* translators: %s: Name of the constant used. */ @@ -245,7 +245,7 @@ class WP_Site_Health_Auto_Updates { $check_dirs[] = $context_dir; // Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here. - if ( dirname( $context_dir ) == $context_dir ) { + if ( dirname( $context_dir ) === $context_dir ) { break; }