From d8c80583097a7abda25d3fbb03f5ba2d774e7cc5 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Mar 2020 07:18:20 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-http-proxy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-http-proxy.php b/src/wp-includes/class-wp-http-proxy.php index f8d89ef65c..37752c001a 100644 --- a/src/wp-includes/class-wp-http-proxy.php +++ b/src/wp-includes/class-wp-http-proxy.php @@ -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 ); } } }