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:
parent
c18460698f
commit
0126a4bd2a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user