[buddypress-trac] [BuddyPress] #2591: Changeset 3200 - groups_leave_group() should be groups_remove_member()

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu Aug 19 07:48:16 UTC 2010


#2591: Changeset 3200 - groups_leave_group() should be groups_remove_member()
--------------------+-------------------------------------------------------
 Reporter:  r-a-y   |       Owner:       
     Type:  defect  |      Status:  new  
 Priority:  normal  |   Milestone:  1.2.6
Component:  Groups  |    Keywords:       
--------------------+-------------------------------------------------------

Comment(by r-a-y):

 Should be:

 {{{
 if ( !groups_remove_member( $user_id, $bp->groups->current_group->id ) )
 }}}

 Instead of:

 {{{
 if ( !groups_leave_group( $bp->groups->current_group->id, $user_id ) )
 }}}

-- 
Ticket URL: <https://trac.buddypress.org/ticket/2591#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list