mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-22 16:52:42 +00:00
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:
parent
0f9477d5e8
commit
d8c8058309
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user