Buddyboss bug and out of sync with Github
-
Hi,
I use this plugin with BuddyBoss. It’s stopped working and I’ve implemented a fix locally. I wanted to push this to your repository, but the code on Github is not the same as in the plugin here. This means I can’t really work out what’s going on.
The issue with the download version seems to be that in
class-bp-notifications-widget.php
.$notifications
can be set as a string. The rest of the code expects it to be an array.That file is different on Github than it is in the current version of the plugin to download. My local fix, based on this download version, just modifies the code around line 45:
// will be set to false if there are no notifications. if ( empty( $notifications ) ) { $count = 0; } elseif (is_string($notifications)) { $notifications = array($notifications); $count = 1; } else { $count = count( $notifications ); }
Thanks,
Jemima
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Buddyboss bug and out of sync with Github’ is closed to new replies.