Ticket #3696: 3696.patch
File 3696.patch, 834 bytes (added by , 13 years ago) |
---|
-
bp-blogs/bp-blogs-functions.php
299 299 function bp_blogs_add_user_to_blog( $user_id, $role = false, $blog_id = 0 ) { 300 300 global $wpdb; 301 301 302 if ( empty( $blog_id ) && isset( $wpdb->blogid ) ) 303 $blog_id = $wpdb->blogid; 304 else 305 $blog_id = bp_get_root_blog_id(); 302 if ( empty( $blog_id ) ) { 303 if ( isset( $wpdb->blogid ) ) 304 $blog_id = $wpdb->blogid; 305 else 306 $blog_id = bp_get_root_blog_id(); 307 } 306 308 307 309 if ( empty( $role ) ) { 308 310 $key = $wpdb->get_blog_prefix( $blog_id ). 'capabilities';