- Timestamp:
- 09/09/2021 02:01:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-component.php
r13101 r13103 266 266 } 267 267 268 // Make sure the Group ID is an integer. 269 $this->current_group->id = (int) $this->current_group->id; 270 268 271 // When in a single group, the first action is bumped down one because of the 269 272 // group name, so we need to adjust this and set the group name to current_item. … … 281 284 // If the user is not an admin, check if they are a moderator. 282 285 if ( ! bp_is_item_admin() ) { 283 bp_update_is_item_mod ( groups_is_user_mod( bp_loggedin_user_id(), $this->current_group->id ), 'groups' );286 bp_update_is_item_mod( groups_is_user_mod( bp_loggedin_user_id(), $this->current_group->id ), 'groups' ); 284 287 } 285 288 286 289 // Check once if the current group has a custom front template. 287 290 $this->current_group->front_template = bp_groups_get_front_template( $this->current_group ); 291 292 /** 293 * Fires once the `current_group` global is fully set. 294 * 295 * @since 10.0.0 296 * 297 * @param BP_Groups_Group|object $current_group The current group object. 298 */ 299 do_action_ref_array( 'bp_groups_set_current_group', array( $this->current_group ) ); 288 300 289 301 // Initialize the nav for the groups component.
Note: See TracChangeset
for help on using the changeset viewer.