From 1cad6cfc262ee3b0ddde7ef626f8bf68d6d4bf38 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 30 Sep 2021 14:05:02 +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. Built from https://develop.svn.wordpress.org/trunk@51877 git-svn-id: http://core.svn.wordpress.org/trunk@51470 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 861d1d0e4b..d998d30e0d 100644 --- a/wp-includes/class-http.php +++ b/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. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 58426470f6..e3d85faaf3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51876'; +$wp_version = '5.9-alpha-51877'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.