Make WordPress Core

Changeset 45329


Ignore:
Timestamp:
05/16/2019 10:23:51 PM (7 years 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.
Merges [45328] to the 5.2 branch.
Fixes #47297.

File:
1 edited

Legend:

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

    r45314 r45329  
    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.