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:
parent
64ed8a7355
commit
5850f5f6ef
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue