Make WordPress Core


Ignore:
Timestamp:
05/22/2020 05:54:50 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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

See #49542.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r47808 r47841  
    6666     */
    6767    public function test_constants( $constant, $value ) {
    68         if ( defined( $constant ) && constant( $constant ) != $value ) {
     68        if ( defined( $constant ) && constant( $constant ) !== $value ) {
    6969            return array(
    7070                'description' => sprintf(
     
    246246
    247247                // Once we've hit '/' or 'C:\', we need to stop. dirname will keep returning the input here.
    248                 if ( dirname( $context_dir ) == $context_dir ) {
     248                if ( dirname( $context_dir ) === $context_dir ) {
    249249                    break;
    250250                }
Note: See TracChangeset for help on using the changeset viewer.