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
This commit is contained in:
Sergey Biryukov 2019-05-16 22:07:35 +00:00
parent c18460698f
commit 0126a4bd2a

View File

@ -1577,7 +1577,7 @@ class WP_Site_Health {
$blocked = false; $blocked = false;
$hosts = array(); $hosts = array();
if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) { if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) {
$blocked = true; $blocked = true;
} }