* @return bool
*/
function ms_allowed_http_request_hosts( $is_external, $host ) {
- global $wpdb, $current_site;
+ global $wpdb;
static $queried = array();
if ( $is_external )
return $is_external;
- if ( $host === $current_site->domain )
+ if ( $host === get_current_site()->domain )
return true;
if ( isset( $queried[ $host ] ) )
return $queried[ $host ];