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

Props thrijith, mukesh27.
Fixes #46784.

git-svn-id: https://develop.svn.wordpress.org/trunk@47508 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-03-26 07:18:20 +00:00
parent 0f9477d5e8
commit d8c8058309
1 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ class WP_HTTP_Proxy {
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;
}
@ -223,7 +223,7 @@ class WP_HTTP_Proxy {
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 );
}
}
}