[buddypress-trac] [BuddyPress] #3696: User added to root blog when creating a new blog
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Oct 19 15:58:08 UTC 2011
#3696: User added to root blog when creating a new blog
--------------------------+-----------------------------
Reporter: gdott9 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Blogs | Version: 1.5
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Hi,
When a user creates a new blog on a WPMU plateform, it adds the root blog
and the new blog to his list of blogs. The root blog should not be added.
It's because of this part in the function bp_blogs_add_user_to_blog in bp-
blogs/bp-blogs-functions.php :
{{{
#!php
if ( empty( $blog_id ) && isset( $wpdb->blogid ) )
$blog_id = $wpdb->blogid;
else
$blog_id = bp_get_root_blog_id();
}}}
It overrides the value of the $blog_id parameter in every case whereas it
should only do it if $blog_id is empty.
I attached a patch to this ticket.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3696>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list