Introduce wp_get_db_schema() for rerieving the various flavors of the WP db schema. Eliminates need to use global. Allows multiple calls to wpmu_create_blog(). see #12028

git-svn-id: https://develop.svn.wordpress.org/trunk@18899 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2011-10-06 00:21:24 +00:00
parent e7ab67e395
commit 319d070078
5 changed files with 183 additions and 119 deletions
+1 -1
View File
@@ -1172,7 +1172,7 @@ function install_blog($blog_id, $blog_title = '') {
$url = get_blogaddress_by_id($blog_id);
// Set everything up
make_db_current_silent();
make_db_current_silent( 'blog' );
populate_options();
populate_roles();
$wp_roles->_init();