'blog_public' =>
(int) $site->public,
'WPLANG' =>
get_network_option( $network->id, 'WPLANG'
),
),
$args['options'
] ) );
// Clean blog cache after populating options.
clean_blog_cache( $site );
// Populate the site's roles.
populate_roles();
$wp_roles =
new WP_Roles();
// Populate metadata for the site.
populate_site_meta( $site->id,
$args['meta'
] );
// Remove all permissions that may exist for the site.
$table_prefix =
$wpdb->
get_blog_prefix();
delete_metadata( 'user', 0,
$table_prefix . 'user_level', null, true
); // Delete all.
delete_metadata( 'user', 0,
$table_prefix . 'capabilities', null, true
); // Delete all.
// Install default site content.