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:
parent
31b8da5ae5
commit
22305da3a3
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue