Ticket #2733: 2733.001.patch
File 2733.001.patch, 895 bytes (added by , 14 years ago) |
---|
-
buddypress/bp-groups.php
1754 1754 if ( groups_is_user_member( $user_id, $group_id ) ) 1755 1755 return true; 1756 1756 1757 if ( !$bp->groups->current_group)1757 if ( $group_id ) 1758 1758 $bp->groups->current_group = new BP_Groups_Group( $group_id ); 1759 1759 1760 1760 $new_member = new BP_Groups_Member; … … 1773 1773 groups_record_activity( array( 1774 1774 'action' => apply_filters( 'groups_activity_joined_group', sprintf( __( '%s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . esc_attr( $bp->groups->current_group->name ) . '</a>' ) ), 1775 1775 'type' => 'joined_group', 1776 'item_id' => $group_id 1776 'item_id' => $group_id, 1777 'user_id' => $user_id 1777 1778 ) ); 1778 1779 1779 1780 /* Modify group meta */