summaryrefslogtreecommitdiffstats
path: root/wp-signup.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-19 08:09:32 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-19 08:09:32 +0000
commit7a92352103d64e1031bf02d92918d51183eec62d (patch)
treec9126eb2ec1642cca135f8bb455f99ea383d8ae3 /wp-signup.php
parent6c444c2707105434942111263759d54d8df66bdf (diff)
downloadwordpress-mu-7a92352103d64e1031bf02d92918d51183eec62d.zip
wordpress-mu-7a92352103d64e1031bf02d92918d51183eec62d.tar.gz
wordpress-mu-7a92352103d64e1031bf02d92918d51183eec62d.tar.xz
Pass site_id to wpmu_create_blog, should fix #577
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1252 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-signup.php')
-rw-r--r--wp-signup.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/wp-signup.php b/wp-signup.php
index cef13d8..6c4caca 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -201,11 +201,10 @@ function signup_another_blog($blog_id = '', $blog_title = '', $errors = '') {
}
function validate_another_blog_signup() {
- global $current_user, $blog_id, $blog_title, $errors, $domain, $path;
+ global $wpdb, $current_user, $blog_id, $blog_title, $errors, $domain, $path;
$current_user = wp_get_current_user();
- if( !is_user_logged_in() ) {
+ if( !is_user_logged_in() )
die();
- }
$result = validate_blog_form();
extract($result);
@@ -218,7 +217,7 @@ function validate_another_blog_signup() {
$public = (int) $_POST['blog_public'];
$meta = apply_filters('signup_create_blog_meta', array ('lang_id' => 1, 'public' => $public));
- wpmu_create_blog($domain, $path, $blog_title, $current_user->id, $meta);
+ wpmu_create_blog( $domain, $path, $blog_title, $current_user->id, $meta, $wpdb->siteid );
confirm_another_blog_signup($domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta);
}