Skip to:

Opened 16 years ago

Closed 16 years ago

#142 closed defect (bug) (fixed)

Wrong blog ID returned when going to another page/post

Reported by: bercon's profile bercon Owned by:
Milestone: Priority: critical
Severity: Version:
Component: Keywords:


I'm using revision 493 of BuddyPress and I noticed that when I went from the home page to another post/page that the menu links changed to another blog's page links although the page/post content was from the correct blog.

I found that by doing the changes below I got it to work correctly:
adding restore_current_blog(); on line 464 & removing switch_to_blog on line 467 in file bp-blogs.php

adding restore_current_blog(); on line 229 & line 360 in bp-blogs-classes.php

adding restore_current_blog(); on line 322 in bp-blogs-templatetags.php

Change History (1)

#1 @apeatling
16 years ago

  • Resolution set to fixed
  • Status changed from new to closed

This should be fixed, it was actually a case of missing switch_to_blog() calls in the functions being called in the locations you mentioned.

Can you confirm this is working for you?

Note: See TracTickets for help on using tickets.