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
This commit is contained in:
Sergey Biryukov 2020-03-26 07:20:10 +00:00
parent 2b030a1647
commit b9869da157
2 changed files with 3 additions and 3 deletions

View File

@ -198,7 +198,7 @@ class WP_HTTP_Proxy {
return $result; 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; return false;
} }
@ -223,7 +223,7 @@ class WP_HTTP_Proxy {
if ( ! empty( $wildcard_regex ) ) { if ( ! empty( $wildcard_regex ) ) {
return ! preg_match( $wildcard_regex, $check['host'] ); return ! preg_match( $wildcard_regex, $check['host'] );
} else { } else {
return ! in_array( $check['host'], $bypass_hosts ); return ! in_array( $check['host'], $bypass_hosts, true );
} }
} }
} }

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.