[buddypress-trac] [BuddyPress] #3755: BP does not detect user blogs when users added to blog via XML import (was: Multisite Buddypress - New Users, Sites, Admin Bar)

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sat Nov 19 13:22:37 UTC 2011

#3755: BP does not detect user blogs when users added to blog via XML import
 Reporter:  broniors                  |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Future Release
Component:  Blogs                     |     Version:  1.5.1
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
Changes (by boonebgorges):

 * keywords:   => needs-patch dev-feedback
 * component:  Core => Blogs
 * version:   => 1.5.1
 * milestone:  Awaiting Review => Future Release


 It's probably the case that BP doesn't detect users being added to blogs
 via an XML post import. When you change the user's password, I think it's
 a roundabout way of forcing BP to reindex blogs for that user - you could
 probably change anything on the user's WP profile and it would have the
 same effect.

 Try putting this inside of plugins/bp-custom.php, and refreshing your
 admin section one time:

 `function bbg_reset_blogs() {
   if ( is_super_admin() )
 add_action( 'admin_init', 'bbg_reset_blogs' );`

 That will run the script that looks for existing blogs and adds them to BP
 users. Once you've verified that it's worked, comment out the `add_action`
 line or delete the whole block so that it doesn't run over and over again.

 Your situation is an edge case, but it would be nice to fix at some point.
 Not sure of the best way to do it - dev feedback welcome.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3755#comment:2>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list