diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 41cfe840d6..1f0420a934 100644 --- a/wp-includes/class-http.php +++ b/wp-includes/class-http.php @@ -183,7 +183,11 @@ class WP_Http { // Determine if this request is to OUR install of WordPress $homeURL = parse_url( get_bloginfo( 'url' ) ); - $r['local'] = $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host']; + if ( isset( $homeURL['host'] ) ) { + $r['local'] = ( $homeURL['host'] == $arrURL['host'] || 'localhost' == $arrURL['host'] ); + } else { + $r['local'] = false; + } unset( $homeURL ); // If we are streaming to a file but no filename was given drop it in the WP temp dir