Ticket #482: hidden.patch
File hidden.patch, 759 bytes (added by , 16 years ago) |
---|
-
bp-groups-templatetags.php
1177 1177 echo '<a class="membership-requested" href="' . bp_group_permalink( $group, false ) . '">' . __( 'Request Sent', 'buddypress' ) . '</a>'; 1178 1178 } 1179 1179 break; 1180 1181 case 'hidden': 1182 if ( BP_Groups_Member::check_is_member( $bp->loggedin_user->id, $group->id ) ) { 1183 echo '<a class="leave-group" href="' . wp_nonce_url( bp_group_permalink( $group, false ) . '/leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 1184 } 1185 break; 1180 1186 } 1181 1187 1182 1188 echo '</div>';