]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/class-http.php
Wordpress 3.0.1
[autoinstalls/wordpress.git] / wp-includes / class-http.php
index d913d6dbba7a05e8c2611cccdfc38ffc2edc639f..3e808692f7ba8c9dfa360813a5360bf71c9f4456 100644 (file)
@@ -240,7 +240,7 @@ class WP_Http {
 
                $arrURL = parse_url($url);
 
-               if ( empty( $url ) || empty($url['scheme'] ) )
+               if ( empty( $url ) || empty( $arrURL['scheme'] ) )
                        return new WP_Error('http_request_failed', __('A valid URL was not provided.'));
 
                if ( $this->block_request( $url ) )