From 6ba2bdbc1e8b06d7fd2dc1be701bad7e1e1bb1e7 Mon Sep 17 00:00:00 2001 From: donncha Date: Thu, 18 Oct 2007 14:12:56 +0000 Subject: 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 --- wp-includes/wpmu-functions.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wp-includes') 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 ); -- cgit