From 3fe58b173feb58d46de8796faa3ba50d9f82fe60 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 22 May 2020 17:54:50 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `wp-admin/includes/class-wp-site-health-auto-updates.php`. See #49542. git-svn-id: https://develop.svn.wordpress.org/trunk@47841 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health-auto-updates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }