WordPress.org

Make WordPress Core

Changeset 45328


Ignore:
Timestamp:
05/16/2019 10:07:35 PM (3 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r45309 r45328  
    15781578        $hosts   = array();
    15791579
    1580         if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
     1580        if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) {
    15811581            $blocked = true;
    15821582        }
Note: See TracChangeset for help on using the changeset viewer.