From b9869da1575ad61ffef0ebc6330a7a7f80e5d77c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 26 Mar 2020 07:20:10 +0000 Subject: [PATCH] Coding Standards: Fix WPCS issues in `wp-includes/class-wp-http-proxy.php`. Props thrijith, mukesh27. Fixes #46784. Built from https://develop.svn.wordpress.org/trunk@47508 git-svn-id: http://core.svn.wordpress.org/trunk@47283 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-proxy.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-http-proxy.php b/wp-includes/class-wp-http-proxy.php index f8d89ef65c..37752c001a 100644 --- a/wp-includes/class-wp-http-proxy.php +++ b/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 ); } } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 3964812a92..48b62d863b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47507'; +$wp_version = '5.5-alpha-47508'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.