WordPress.org

Make WordPress Core

Ticket #47297: site-health-WP_HTTP_BLOCK_EXTERNAL.patch

File site-health-WP_HTTP_BLOCK_EXTERNAL.patch, 624 bytes (added by chesio, 3 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

     
    15741574                        'test'        => 'http_requests',
    15751575                );
    15761576
    1577                 $blocked = false;
     1577                $blocked = defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL;
    15781578                $hosts   = array();
    15791579
    1580                 if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) ) {
    1581                         $blocked = true;
    1582                 }
    1583 
    15841580                if ( defined( 'WP_ACCESSIBLE_HOSTS' ) ) {
    15851581                        $hosts = explode( ',', WP_ACCESSIBLE_HOSTS );
    15861582                }