WordPress.org

Make WordPress Core

Changeset 47508


Ignore:
Timestamp:
03/26/2020 07:18:20 AM (2 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS issues in wp-includes/class-wp-http-proxy.php.

Props thrijith, mukesh27.
Fixes #46784.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-proxy.php

    r47219 r47508  
    199199        }
    200200
    201         if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
     201        if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
    202202            return false;
    203203        }
     
    224224            return ! preg_match( $wildcard_regex, $check['host'] );
    225225        } else {
    226             return ! in_array( $check['host'], $bypass_hosts );
     226            return ! in_array( $check['host'], $bypass_hosts, true );
    227227        }
    228228    }
Note: See TracChangeset for help on using the changeset viewer.