Ticket #175: sitewide.patch
File sitewide.patch, 838 bytes (added by , 16 years ago) |
---|
-
bp-blogs.php
383 383 add_action( 'wpmu_new_blog', 'bp_blogs_record_blog', 10, 2 ); 384 384 385 385 function bp_blogs_record_post( $post_id, $blog_id = false, $user_id = false ) { 386 global $bp, $ current_blog;387 386 global $bp, $wpdb; 387 388 388 if ( !$bp ) { 389 389 bp_core_setup_globals(); 390 390 bp_blogs_setup_globals(); … … 392 392 393 393 $post_id = (int)$post_id; 394 394 $post = get_post($post_id); 395 395 396 396 if ( !$user_id ) 397 397 $user_id = (int)$post->post_author; 398 398 399 399 if ( !$blog_id ) 400 $blog_id = (int)$ current_blog->blog_id;400 $blog_id = (int)$wpdb->blogid; 401 401 402 402 /* This is to stop infinate loops with Donncha's sitewide tags plugin */ 403 403 if ( (int)get_site_option('tags_blog_id') == (int)$blog_id )