opencredit / BadgeOS-Community-Add-on

The "BadgeOS Community Add-on" integrates BadgeOS features into BuddyPress and bbPress. Site members complete achievements and earn badges based on a range of community activity and triggers. This add-on to BadgeOS also includes the ability to display badges and achievements on user profiles and activity feeds.
GNU Affero General Public License v3.0
11 stars 8 forks source link

badgeos_get_network_achievement_types_for_user() does not restore the correct site after it's done #17

Closed tw2113 closed 10 years ago

tw2113 commented 10 years ago

Inside of badgeos_get_network_achievement_types_for_user():

Need to either move the restore_current_blog() in to the foreach loop, or cache the $blog_id global and switch_to_blog() that cached value after the foreach is done.

halleg commented 10 years ago

Can you guide me a little bit more please to achieve this. I am just not sure I see where to input it. I am so far on a clean setup with the little check box for the network unchecked. The behavior is that it is working so far per website.

tw2113 commented 10 years ago

halleg, this should be an automatic thing within the function, not something that our users implement themselves. It's in the 1.3.4 update of the core plugin, which is where the issue originated from.

tw2113 commented 10 years ago

sorry for sounding a bit insensitive, i did forget I asked you to apply it yourself a couple weeks back. That's my slip-up.

halleg commented 10 years ago

No worries, will try enabling it then I have the latest version of the plugin. Cheers.