[buddypress-trac] [BuddyPress Trac] #6450: Weird behalf on group creation

buddypress-trac noreply at wordpress.org
Fri May 22 19:14:13 UTC 2015


#6450: Weird behalf on group creation
--------------------------------+-----------------------------
 Reporter:  danbp               |      Owner:
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Component - Groups  |    Version:  2.2.3
 Severity:  normal              |   Keywords:
--------------------------------+-----------------------------
 I found a weird behalf during group creation on frontend. It's not really
 a bug, but simply "strange" and using a custom function.

 I just want want to let you know what happens.

 The function in bp-custom: (found on a old forum topic)


 {{{
 function my_filter_group_status( $status ) {
 if( $key = array_search( 'hidden', $status ) ) {
 unset( $status[$key] );
 }

 return $status;
 }
 add_filter( 'groups_allowed_status', 'my_filter_group_status' );
 }}}

 Has no utility, doesn't work, i simply forget to remove it.

 Now with that function active, log in as user and create a new public
 group and go over to step 3 or 4, then go back to your groups directory.

 The group exist, but has 2 members and both are group admins ! I made
 several tessts with different users. The second member is not always a
 friend of the user, and is apparently randomly added.

 Remove the bad function and create a new group again. Anything is correct:
 group is created with only one member, the group admin.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6450>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list