Changeset 7980
- Timestamp:
- 02/25/2014 01:43:34 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups/bp-groups-classes.php
r7976 r7980 207 207 if ( ! empty( $this->args['populate_extras'] ) ) { 208 208 209 // Set up some specific group vars from meta210 $this->last_activity = groups_get_groupmeta( $this->id, 'last_activity' );211 $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' );212 213 209 // Get group admins and mods 214 210 $admin_mods = $wpdb->get_results( apply_filters( 'bp_group_admin_mods_user_join_filter', $wpdb->prepare( "SELECT u.ID as user_id, u.user_login, u.user_email, u.user_nicename, m.is_admin, m.is_mod FROM {$wpdb->users} u, {$bp->groups->table_name_members} m WHERE u.ID = m.user_id AND m.group_id = %d AND ( m.is_admin = 1 OR m.is_mod = 1 )", $this->id ) ) ); … … 225 221 // Cache the group object before user-specific data is added 226 222 wp_cache_set( $this->id, $this, 'bp_groups' ); 223 224 // Set up some specific group vars from meta. Excluded 225 // from the bp_groups cache because it's cached independently 226 $this->last_activity = groups_get_groupmeta( $this->id, 'last_activity' ); 227 $this->total_member_count = groups_get_groupmeta( $this->id, 'total_member_count' ); 227 228 228 229 // Set user-specific data
Note: See TracChangeset
for help on using the changeset viewer.