Skip to:
Content

BuddyPress.org

Changeset 11603


Ignore:
Timestamp:
06/21/2017 10:27:33 PM (2 years ago)
Author:
r-a-y
Message:

Groups: Skip the member save routine if we've already sent an invite to the group member in groups_send_invites().

Props boonebgorges.

Fixes #7397.

File:
1 edited

Legend:

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

    r11594 r11603  
    15971597        $member = new BP_Groups_Member( $invited_users[$i], $group_id );
    15981598
     1599        // Skip if we've already sent an invite to this user.
     1600        if ( $member->invite_sent ) {
     1601            continue;
     1602        }
     1603
    15991604        // Send the actual invite.
    16001605        groups_notification_group_invites( $group, $member, $user_id );
Note: See TracChangeset for help on using the changeset viewer.