Skip to:
Content

BuddyPress.org

Changeset 9309


Ignore:
Timestamp:
01/07/2015 10:19:16 PM (10 years ago)
Author:
r-a-y
Message:

Groups: Fix wrong parameter usage for `groups_delete_membership_request().

Props dcavins.

See #6090.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-functions.php

    r9308 r9309  
    410410    // Check if the user has an outstanding request. If so, delete it.
    411411    if ( groups_check_for_membership_request( $user_id, $group_id ) )
    412         groups_delete_membership_request( $user_id, $group_id );
     412        groups_delete_membership_request( null, $user_id, $group_id );
    413413
    414414    // User is already a member, just return true
     
    977977
    978978        if ( groups_check_for_membership_request( $user_id, $group_id ) ) {
    979             groups_delete_membership_request( $user_id, $group_id );
     979            groups_delete_membership_request( null, $user_id, $group_id );
    980980        }
    981981
Note: See TracChangeset for help on using the changeset viewer.