Support » Plugin: Events Manager » BuddyPress conflicts (fix included)

  • I was getting a conflict with BuddyPress and ThreeWP Broadcast and determined the culprit to be caused by a couple instances of switch_to_blog not being properly switched back via the updated restore_current_blog() function.

    I didn’t easily find a way to submit a pull request so I’ll just post it here.

    Replacing switch_to_blog($current_blog); with restore_current_blog(); on lines 73 and 180 of bp-em-core.php resolves the conflict.

    It looks like you are using restore_current_blog everywhere else. I’m more than happy to submit a pull request if that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support angelo_nwl


    thanks for sharing, will let the devs know about this.

    Thanks Angelo. Look forward to a resolution.

    Plugin Author Marcus


    NetWebLogic Support

    Hi Mike (@mikegillihan),

    Sorry for the delayed reply. We do use the blog switching elsewhere but we already use restore_current_blog(), so we must have missed this one when updating that way back when. I did another review and it looks like only those were missed.

    Thanks for spotting those, they’ll be fixed in the next update.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BuddyPress conflicts (fix included)’ is closed to new replies.