Skip to:
Content

BuddyPress.org

Ticket #6090: 6090.01b.patch

File 6090.01b.patch, 950 bytes (added by dcavins, 9 years ago)

Fix parameter order only in uses of groups_delete_membership_request()

  • src/bp-groups/bp-groups-functions.php

    diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
    index ec3ec01..288d78e 100644
    function groups_join_group( $group_id, $user_id = 0 ) { 
    409409
    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
    415415        if ( groups_is_user_member( $user_id, $group_id ) )
    function groups_accept_invite( $user_id, $group_id ) { 
    976976                }
    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
    982982                return true;