Changeset 10205 for trunk/src/bp-groups/bp-groups-loader.php
- Timestamp:
- 10/07/2015 03:56:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-loader.php
r10184 r10205 391 391 } 392 392 393 /** 394 * If there's no custom front.php template for the group, we need to make sure the canonical stack action 395 * is set to 'home' in these 2 cases: 396 * 397 * - the current action is 'activity' (eg: site.url/groups/single/activity) and the Activity component is active 398 * - the current action is 'members' (eg: site.url/groups/single/members) and the Activity component is *not* active. 399 */ 400 if ( ! $this->current_group->front_template && ( bp_is_current_action( 'activity' ) || ( ! bp_is_active( 'activity' ) && bp_is_current_action( 'members' ) ) ) ) { 401 $bp->canonical_stack['action'] = 'home'; 402 } 403 393 404 if ( ! empty( $bp->action_variables ) ) { 394 405 $bp->canonical_stack['action_variables'] = bp_action_variables();
Note: See TracChangeset
for help on using the changeset viewer.