[buddypress-trac] [BuddyPress] #2984: $current_blog is not updated during switch_to_blog()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Dec 31 01:40:54 UTC 2010


#2984: $current_blog is not updated during switch_to_blog()
----------------------+-----------------------------
 Reporter:  wpmuguru  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Awaiting Review
Component:  Core      |    Version:
 Keywords:            |
----------------------+-----------------------------
 I noted in some patches going through that $current_blog is being compared
 to BP_ROOT_BLOG. If a plugin calls switch_to_blog, the $current_blog
 object is not updated to reflect the switched blog. Instead $current_blog
 is the original unswitched blog.

 It would be better to compare the blog id to $wpdb->blogid which is
 updated on switch to blog.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2984>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list