Make WordPress Core


Ignore:
Timestamp:
02/26/2010 12:37:20 AM (15 years ago)
Author:
nacin
Message:

Clean up redundant defined() check. Props TobiasBg fixes #12375

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-http.php

    r13377 r13422  
    539539     * prevent plugins from working and core functionality, if you don't include api.wordpress.org.
    540540     *
    541      * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL in your wp-config.php file
    542      * and this will only allow localhost and your blog to make requests. The constant
     541     * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true in your wp-config.php
     542     * file and this will only allow localhost and your blog to make requests. The constant
    543543     * WP_ACCESSIBLE_HOSTS will allow additional hosts to go through for requests. The format of the
    544544     * WP_ACCESSIBLE_HOSTS constant is a comma separated list of hostnames to allow.
     
    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
Note: See TracChangeset for help on using the changeset viewer.