Ticket #142 (closed defect: fixed)

Opened 2 months ago

Last modified 7 weeks ago

Wrong blog ID returned when going to another page/post

Reported by: bercon Owned by:
Priority: critical Milestone:
Version: Keywords:
Cc:

Description

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

Changed 7 weeks ago by apeatling

  • status changed from new to closed
  • resolution set to fixed

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.