Skip to content

Commit

Permalink
Coding Standards: Fix WPCS issues in `wp-includes/class-wp-http-proxy…
Browse files Browse the repository at this point in the history
….php`.

Props thrijith, mukesh27.
Fixes #46784.

git-svn-id: https://develop.svn.wordpress.org/trunk@47508 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Mar 26, 2020
1 parent 0f9477d commit d8c8058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-wp-http-proxy.php
Expand Up @@ -198,7 +198,7 @@ public function send_through_proxy( $uri ) {
return $result;
}

if ( 'localhost' == $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) {
if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) {
return false;
}

Expand All @@ -223,7 +223,7 @@ public function send_through_proxy( $uri ) {
if ( ! empty( $wildcard_regex ) ) {
return ! preg_match( $wildcard_regex, $check['host'] );
} else {
return ! in_array( $check['host'], $bypass_hosts );
return ! in_array( $check['host'], $bypass_hosts, true );
}
}
}

0 comments on commit d8c8058

Please sign in to comment.