Changeset 2533 for trunk/bp-groups/bp-groups-templatetags.php
- Timestamp:
- 02/02/2010 12:40:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-templatetags.php
r2496 r2533 1080 1080 $group =& $groups_template->group; 1081 1081 1082 if ( groups_is_user_member( $bp->loggedin_user->id, $group->id ))1083 return true;1084 1085 return false;1082 if ( null == $group->is_member ) 1083 return false; 1084 1085 return true; 1086 1086 } 1087 1087 … … 1168 1168 1169 1169 // If they're not logged in or are banned from the group, no join button. 1170 if ( !is_user_logged_in() || groups_is_user_banned( $bp->loggedin_user->id, $group->id ))1170 if ( !is_user_logged_in() || $group->is_banned ) 1171 1171 return false; 1172 1172 … … 1178 1178 switch ( $group->status ) { 1179 1179 case 'public': 1180 if ( BP_Groups_Member::check_is_member( $bp->loggedin_user->id, $group->id ))1180 if ( $group->is_member ) 1181 1181 echo '<a class="leave-group" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 1182 1182 else … … 1185 1185 1186 1186 case 'private': 1187 if ( BP_Groups_Member::check_is_member( $bp->loggedin_user->id, $group->id )) {1187 if ( $group->is_member ) { 1188 1188 echo '<a class="leave-group" href="' . wp_nonce_url( bp_get_group_permalink( $group ) . 'leave-group', 'groups_leave_group' ) . '">' . __( 'Leave Group', 'buddypress' ) . '</a>'; 1189 1189 } else {
Note: See TracChangeset
for help on using the changeset viewer.