Switch_to_blog call in Users.php causing issues
-
The switch_to_blog call in the ‘badgeos_get_network_achievement_types_for_user’ function in the users.php file is causing issues with other plugins, in particular the ThreeWP Broadcast plugin.
There is never a call to restore_current_blog after the blog is switched, rather it switches back by calling switch_to_blog again with the cached blog id, but this is causing others plugins to view the blog as still being switched and preventing them from working.
I can fix the issue by replacing the second switch_to_blog call with a call to restore_current_blog but then I am no longer able to have the badgeos community add on activated, as doing so breaks all admin navigation and redirects all links to one child site.
I would like to be able to continue to use both badgeos and the community add on. Any help is appreciated.
- The topic ‘Switch_to_blog call in Users.php causing issues’ is closed to new replies.