Skip to content
Permalink
Browse files

Site Health: In HTTP requests test, when checking whether the `WP_HTT…

…P_BLOCK_EXTERNAL` constant is defined, check its value as well.

Props chesio.
Merges [45328] to the 5.2 branch.
Fixes #47297.

git-svn-id: https://develop.svn.wordpress.org/branches/5.2@45329 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed May 16, 2019
1 parent 5c0f8ed commit 6f1ac9e021f181b267d05f82bc33aae44add0733
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wp-admin/includes/class-wp-site-health.php
@@ -1577,7 +1577,7 @@ public function get_test_http_requests() {
$blocked = false;
$hosts = array();
if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) {
$blocked = true;
}

0 comments on commit 6f1ac9e

Please sign in to comment.
You can’t perform that action at this time.