From 056dae6ac50ec9f8afe979a0a02668a07d89e3f1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 16 May 2019 22:24:53 +0000 Subject: [PATCH] Site Health: In HTTP requests test, when checking whether the `WP_HTTP_BLOCK_EXTERNAL` constant is defined, check its value as well. Props chesio. Merges [45328] to the 5.2 branch. Fixes #47297. Built from https://develop.svn.wordpress.org/branches/5.2@45329 git-svn-id: http://core.svn.wordpress.org/branches/5.2@45140 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-site-health.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/class-wp-site-health.php b/wp-admin/includes/class-wp-site-health.php index d7432eb371..ebaeb18989 100644 --- a/wp-admin/includes/class-wp-site-health.php +++ b/wp-admin/includes/class-wp-site-health.php @@ -1577,7 +1577,7 @@ class WP_Site_Health { $blocked = false; $hosts = array(); - if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) { + if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) { $blocked = true; } diff --git a/wp-includes/version.php b/wp-includes/version.php index be4e91fa13..dc9d91ad7c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2.1-alpha-45327'; +$wp_version = '5.2.1-alpha-45329'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.