Buddypress + BBpress BUG FIX request
-
Until now I had a problem every time a participant wanted to unsubscribe from forum or topic notifications using buddypress profile (forums/subscriptions).
Since the unsusbscribe buttons on his buddypress profile did not work.
And he had to go to the forum/topic in question to perform the operation.I modified the plugin code to fix the problem and it works. You can review my code and include it in your plugin for future updates.
Thanks:/wp-content/plugins/bbpress/includes/users/engagements.php
line 840~ (depends version)
// Bail if actions aren’t meant for this function
if ( ! in_array( $_GET[‘action’], $possible_actions, true ) ) {line 870~ (depends version)
/** No errors *************************************************************/
if ( ‘bbp_unsubscribe’ === $_GET[‘action’] ) {/wp-content/plugins/bbpress/includes/users/template.php
line 1375~
$html = sprintf( ‘%s<span id=”subscribe-%d” %s>%s</span>%s’, $r[‘before’], $object_id, $sub, $url, $object_id, $object_type, wp_create_nonce( ‘toggle-subscription_’ . $object_id ), $text, $r[‘after’] );
- You must be logged in to reply to this topic.