WordPress.org

Make WordPress Core

Ticket #12375: 12375-a.patch

File 12375-a.patch, 605 bytes (added by TobiasBg, 4 years ago)

Patch to fix reduncancy and clean up comparison

  • class-http.php

     
    551551         */ 
    552552        function block_request($uri) { 
    553553                // We don't need to block requests, because nothing is blocked. 
    554                 if ( ! defined('WP_HTTP_BLOCK_EXTERNAL') || ( defined('WP_HTTP_BLOCK_EXTERNAL') && WP_HTTP_BLOCK_EXTERNAL == false ) ) 
     554                if ( ! defined('WP_HTTP_BLOCK_EXTERNAL') || ! WP_HTTP_BLOCK_EXTERNAL ) 
    555555                        return false; 
    556556 
    557557                // parse_url() only handles http, https type URLs, and will emit E_WARNING on failure.