Cast "public" as an int to ensure it gets set correctly.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14892 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
donncha 2010-05-25 16:57:32 +00:00
parent 31b8da5ae5
commit 22305da3a3
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ function wpmu_create_blog($domain, $path, $title, $user_id, $meta = '', $site_id
} }
add_option( 'WPLANG', get_site_option( 'WPLANG' ) ); add_option( 'WPLANG', get_site_option( 'WPLANG' ) );
update_option( 'blog_public', $meta['public'] ); update_option( 'blog_public', (int)$meta['public'] );
if ( !is_super_admin() && get_user_meta( $user_id, 'primary_blog', true ) == get_site_option( 'dashboard_blog', 1 ) ) if ( !is_super_admin() && get_user_meta( $user_id, 'primary_blog', true ) == get_site_option( 'dashboard_blog', 1 ) )
update_user_meta( $user_id, 'primary_blog', $blog_id ); update_user_meta( $user_id, 'primary_blog', $blog_id );