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 b67d509a2552..d5bb241d04b9 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 @@ function( $test ) { * @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 @@ public function test_vcs_abspath() { $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; }