mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-31 21:48:36 +01:00
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:
parent
2b030a1647
commit
b9869da157
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user