if ( empty( $network_id ) ) { $network_id =
get_current_network_id();
} $core_options = array
( 'site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled', 'ms_files_rewriting'
);
if ( wp_using_ext_object_cache() ) { $cache_keys = array
();
foreach ( $core_options as $option ) { $cache_keys[] = "{
$network_id}:{
$option}";
} wp_cache_get_multiple( $cache_keys, 'site-options'
);
return;
} $core_options_in = "'" .
implode( "', '",
$core_options ) . "'";
$options =
$wpdb->
get_results( $wpdb->
prepare( "SELECT meta_key, meta_value FROM
$wpdb->sitemeta WHERE meta_key IN (
$core_options_in) AND site_id = %d",
$network_id ) );
$data = array
();
foreach ( $options as $option ) { $key =
$option->meta_key;
$cache_key = "{
$network_id}:
$key";