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
This commit is contained in:
parent
4d6ac487e7
commit
3fe58b173f
|
@ -65,7 +65,7 @@ class WP_Site_Health_Auto_Updates {
|
||||||
* @return array The test results.
|
* @return array The test results.
|
||||||
*/
|
*/
|
||||||
public function test_constants( $constant, $value ) {
|
public function test_constants( $constant, $value ) {
|
||||||
if ( defined( $constant ) && constant( $constant ) != $value ) {
|
if ( defined( $constant ) && constant( $constant ) !== $value ) {
|
||||||
return array(
|
return array(
|
||||||
'description' => sprintf(
|
'description' => sprintf(
|
||||||
/* translators: %s: Name of the constant used. */
|
/* translators: %s: Name of the constant used. */
|
||||||
|
@ -245,7 +245,7 @@ class WP_Site_Health_Auto_Updates {
|
||||||
$check_dirs[] = $context_dir;
|
$check_dirs[] = $context_dir;
|
||||||
|
|
||||||
// Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
|
// 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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue