install_blog() should not be polluting the siteurl and home options with the trailing slash that comes from get_blogaddress_by_id().

git-svn-id: https://develop.svn.wordpress.org/trunk@21172 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-06-28 20:38:16 +00:00
parent f77b54271a
commit 309ae4c917
1 changed files with 2 additions and 1 deletions

View File

@ -1150,10 +1150,11 @@ function install_blog($blog_id, $blog_title = '') {
populate_roles();
$wp_roles->_init();
$url = untrailingslashit( $url );
// fix url.
update_option('siteurl', $url);
update_option('home', $url);
update_option('fileupload_url', $url . "files" );
update_option('fileupload_url', $url . "/files" );
update_option('upload_path', UPLOADBLOGSDIR . "/$blog_id/files");
update_option('blogname', stripslashes( $blog_title ) );
update_option('admin_email', '');