diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-29 12:09:14 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-03-29 12:09:14 +0000 |
commit | f8826b51365ab156a88f1751ade2f8ce2e75e67b (patch) | |
tree | 3da1343b484bf90aa039c10a797c224b5999fa6c /wp-includes/wpmu-functions.php | |
parent | fd7d4465e730ecbb27e294098f1be070aa4a29dd (diff) | |
download | wordpress-mu-f8826b51365ab156a88f1751ade2f8ce2e75e67b.tar.gz wordpress-mu-f8826b51365ab156a88f1751ade2f8ce2e75e67b.tar.xz wordpress-mu-f8826b51365ab156a88f1751ade2f8ce2e75e67b.zip |
Make sure errors are hidden when adding blogs
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@952 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 5ef6211..538d0f4 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1179,12 +1179,12 @@ function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id // Need to get blog_id from wp_blogs, and create new table names. // Must restore table names at the end of function. - if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) - return new WP_Error('insert_blog', __('Could not create blog.')); - if ( !defined("WP_INSTALLING") ) define( "WP_INSTALLING", true ); + if ( ! $blog_id = insert_blog($domain, $path, $site_id) ) + return new WP_Error('insert_blog', __('Could not create blog.')); + switch_to_blog($blog_id); install_blog($blog_id, $title); |