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.
Built from https://develop.svn.wordpress.org/trunk@45328


git-svn-id: http://core.svn.wordpress.org/trunk@45139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2019-05-16 22:08:54 +00:00
parent c6da25fa9a
commit 9c1a666249
2 changed files with 2 additions and 2 deletions

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

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.3-alpha-45326'; $wp_version = '5.3-alpha-45328';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.