[buddypress-trac] [BuddyPress Trac] #6462: Group invites cannot be removed if not sent

buddypress-trac noreply at wordpress.org
Fri May 29 14:21:58 UTC 2015


#6462: Group invites cannot be removed if not sent
------------------------------+------------------
 Reporter:  imath             |       Owner:
     Type:  regression        |      Status:  new
 Priority:  highest           |   Milestone:  2.3
Component:  API               |     Version:
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by dcavins):

 It's not a new function. The problem was introduced when I made some
 changes to the various "delete" functions in a separate ticket: #6209.

 02.patch does change the behavior of the method from "delete only sent
 invites" to "delete an invite regardless of whether it's sent or not". If
 it's a concern, we can add a third argument,
 `BP_Groups_Member::delete_invite( $user_id, $group_id, $type = 'sent' )`
 to maintain the current behavior for that method (but be able to change
 it).

 However, the functions `groups_uninvite_user()`, `groups_delete_invite()`
 and `groups_reject_invite()` all used `BP_Groups_Member::delete()` before,
 so the proposed change would maintain the current behavior for those
 functions.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6462#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list