﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
16913	install_blog() does not work correctly when called multiple times	westi		"If you want to pre-populate your multisite network with a big group of new blogs to streamline importing from another multisite CMS or another multisite install you can't create a single php script to pre-create all the blogs and there tables.

Something like this will create the blogs in {{{wp_blogs}}} but only install the tables for the first blog due to the way the table schemas are calculate at include time.

{{{
function wp_footer_hooked() {
	$new_blog_id = wpmu_create_blog( 'importone.multisite.domain', '',  'Import One', 1 );
	$new_blog_id = wpmu_create_blog( 'importtwo.multisite.domain', '',  'Import Two', 1 );
}
add_action('wp_footer', 'wp_footer_hooked');
}}}

I think the best fix for this is to change wp-admin/includes/schema.php to return the schema info via a functions rather than at include time (for back compat we can still set the global var up but not use it in core)"	defect (bug)	closed	normal		Multisite	3.1	major	duplicate		
