Changeset 1307
- Timestamp:
- 05/23/08 11:53:11 (5 months ago)
- Files:
-
- trunk/wp-includes/wpmu-functions.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/wpmu-functions.php
r1304 r1307 1171 1171 if ( is_array($meta) ) foreach ($meta as $key => $value) { 1172 1172 update_blog_status( $blog_id, $key, $value ); 1173 update_ blog_option( $blog_id, $key, $value );1174 } 1175 1176 add_ blog_option( $blog_id, 'WPLANG', get_site_option( 'WPLANG' ) );1177 1178 update_ blog_option( $blog_id, 'blog_public', $meta['public'] );1173 update_option( $blog_id, $key, $value ); 1174 } 1175 1176 add_option( $blog_id, 'WPLANG', get_site_option( 'WPLANG' ) ); 1177 1178 update_option( $blog_id, 'blog_public', $meta['public'] ); 1179 1179 delete_blog_option( $blog_id, 'public' ); 1180 1180 … … 1182 1182 update_usermeta( $user_id, 'primary_blog', $blog_id ); 1183 1183 1184 1185 restore_current_blog(); 1184 1186 1185 1187 do_action( 'wpmu_new_blog', $blog_id, $user_id ); … … 1268 1270 $wp_roles->_init(); 1269 1271 // fix url. 1270 wp_cache_delete('notoptions', 'options');1271 wp_cache_delete('alloptions', 'options');1272 1272 update_option('siteurl', $url); 1273 1273 update_option('home', $url); … … 1275 1275 update_option('upload_path', "wp-content/blogs.dir/" . $blog_id . "/files"); 1276 1276 update_option('blogname', $blog_title); 1277 1277 update_option('admin_email', ''); 1278 1278 $wpdb->query("UPDATE $wpdb->options SET option_value = '' WHERE option_name = 'admin_email'"); 1279 1279 … … 1301 1301 $wpdb->query( "DELETE FROM ".$wpdb->usermeta." WHERE meta_key = '".$table_prefix."user_level'" ); 1302 1302 $wpdb->query( "DELETE FROM ".$wpdb->usermeta." WHERE meta_key = '".$table_prefix."capabilities'" ); 1303 1304 wp_cache_delete('notoptions', 'options'); 1305 wp_cache_delete('alloptions', 'options'); 1303 1306 1304 1307 $wpdb->suppress_errors( false );
