From 0126a4bd2a7ee880105a86a4112cd8bdad756e51 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 16 May 2019 22:07:35 +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. Fixes #47297. git-svn-id: https://develop.svn.wordpress.org/trunk@45328 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/class-wp-site-health.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/class-wp-site-health.php b/src/wp-admin/includes/class-wp-site-health.php index d7432eb371..ebaeb18989 100644 --- a/src/wp-admin/includes/class-wp-site-health.php +++ b/src/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; }