return (int) $network_ids;
} $network_ids =
array_map( 'intval',
$network_ids );
if ( 'ids' ===
$this->query_vars
['fields'
] ) { $this->networks =
$network_ids;
return $this->networks;
} if ( $this->query_vars
['update_network_cache'
] ) { _prime_network_caches( $network_ids );
} // Fetch full network objects from the primed cache.
$_networks = array
();
foreach ( $network_ids as $network_id ) { $_network =
get_network( $network_id );
if ( $_network ) { $_networks[] =
$_network;
} }