Skip to:
Content

bbPress.org

Ticket #3360: bbp-buddypress-subscription-fix.patch

File bbp-buddypress-subscription-fix.patch, 581 bytes (added by tanner m, 13 months ago)
  • includes/users/engagements.php

    diff --git a/includes/users/engagements.php b/includes/users/engagements.php
    index e18c58d..e9a35a9 100644
    a b function bbp_subscriptions_handler( $action = '' ) { 
    826826                return $success;
    827827        }
    828828
     829        // BuddyPress doesn't send the $action parameter, so we need to check for it
     830        if ( empty( $action ) && isset( $_GET['action'] ) && is_string( $_GET['action'] ) ) {
     831                $action = sanitize_key( $_GET['action'] );
     832        }
     833
    829834        // Setup possible get actions
    830835        $possible_actions = array(
    831836                'bbp_subscribe',