diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-18 14:12:56 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-18 14:12:56 +0000 |
commit | 6ba2bdbc1e8b06d7fd2dc1be701bad7e1e1bb1e7 (patch) | |
tree | 06a3544986ac8b6a3b1b68ea8386baa182724cc5 /wp-includes/wpmu-functions.php | |
parent | 12bbec22c97336c88b04683ba672f7cd353fdfa5 (diff) | |
download | wordpress-mu-6ba2bdbc1e8b06d7fd2dc1be701bad7e1e1bb1e7.tar.gz wordpress-mu-6ba2bdbc1e8b06d7fd2dc1be701bad7e1e1bb1e7.tar.xz wordpress-mu-6ba2bdbc1e8b06d7fd2dc1be701bad7e1e1bb1e7.zip |
blog_public needs to be set properly when new blogs created, fixes #423
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1101 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r-- | wp-includes/wpmu-functions.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 1f73e79..0a800f8 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1280,6 +1280,9 @@ function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id update_blog_option( $blog_id, $key, $value ); } + update_blog_option( $blog_id, 'blog_public', $meta['public'] ); + delete_blog_option( $blog_id, 'public' ); + if(get_usermeta( $user_id, 'primary_blog' ) == 1 ) update_usermeta( $user_id, 'primary_blog', $blog_id ); |