Coding Standards: Fix WPCS issues in wp-admin/includes/class-wp-site-health-auto-updates.php.

See #49542.
Built from https://develop.svn.wordpress.org/trunk@47841


git-svn-id: http://core.svn.wordpress.org/trunk@47617 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-05-22 17:56:08 +00:00
parent 64ed8a7355
commit 5850f5f6ef
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.5-alpha-47840';
$wp_version = '5.5-alpha-47841';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.