From 48c68e5dac074b4b5b059180c0715c820efd1e45 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 30 Sep 2021 14:03:17 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-includes/class-http.php`. Follow-up to [10625], [10864], [13274], [29661], [33748], [47508], [47808]. See #53359. git-svn-id: https://develop.svn.wordpress.org/trunk@51877 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-http.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 861d1d0e4b..d998d30e0d 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -881,7 +881,7 @@ class WP_Http { $home = parse_url( get_option( 'siteurl' ) ); // Don't block requests back to ourselves by default. - if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] == $check['host'] ) ) { + if ( 'localhost' === $check['host'] || ( isset( $home['host'] ) && $home['host'] === $check['host'] ) ) { /** * Filters whether to block local HTTP API requests. *