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; }