diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-19 17:43:41 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-06-19 17:43:41 +0000 |
commit | ca8181f03aafd35b01fa4172fa5fd3f8f9152645 (patch) | |
tree | 08a76aa507433a7433fb0f3ef0009145ff715693 /index.php | |
parent | c04e27ce6aeb895c0d2e3080aba67ced22ff84bb (diff) | |
download | wordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.tar.gz wordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.tar.xz wordpress-mu-ca8181f03aafd35b01fa4172fa5fd3f8f9152645.zip |
Fix the first post (#30)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@574 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -341,7 +341,7 @@ function printuserdetailsform( $weblog_title = 'My new Blog', $username = '', $e } function step3() { - global $wpdb; + global $wpdb, $current_site; $base = stripslashes( dirname( $_SERVER["SCRIPT_NAME"] ) ); if( $base != "/") { @@ -382,6 +382,11 @@ We hope you enjoy your new weblog. $pass = substr( md5( rand() ), 5, 12 ); $user_id = wpmu_create_user( 'admin', $pass, $email); + + $current_site->domain = $domain; + $current_site->path = $base; + $current_site->site_name = ucfirst( $domain ); + wpmu_create_blog( $domain, $base, $weblog_title, $user_id, array() ); update_blog_option( 1, 'template', 'home'); update_blog_option( 1, 'stylesheet', 'home'); |