From 0b66fc91e0a36866797160199712ba4d27c2b09e Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 26 Feb 2010 00:37:20 +0000 Subject: [PATCH] Clean up redundant defined() check. Props TobiasBg fixes #12375 git-svn-id: http://svn.automattic.com/wordpress/trunk@13422 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 2d74e6e5b6..42b342c724 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -538,8 +538,8 @@ class WP_Http { * Those who are behind a proxy and want to prevent access to certain hosts may do so. This will * prevent plugins from working and core functionality, if you don't include api.wordpress.org. * - * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL in your wp-config.php file - * and this will only allow localhost and your blog to make requests. The constant + * You block external URL requests by defining WP_HTTP_BLOCK_EXTERNAL as true in your wp-config.php + * file and this will only allow localhost and your blog to make requests. The constant * WP_ACCESSIBLE_HOSTS will allow additional hosts to go through for requests. The format of the * WP_ACCESSIBLE_HOSTS constant is a comma separated list of hostnames to allow. * @@ -551,7 +551,7 @@ class WP_Http { */ function block_request($uri) { // We don't need to block requests, because nothing is blocked. - if ( ! defined('WP_HTTP_BLOCK_EXTERNAL') || ( defined('WP_HTTP_BLOCK_EXTERNAL') && WP_HTTP_BLOCK_EXTERNAL == false ) ) + if ( ! defined( 'WP_HTTP_BLOCK_EXTERNAL' ) || ! WP_HTTP_BLOCK_EXTERNAL ) return false; // parse_url() only handles http, https type URLs, and will emit E_WARNING on failure.