diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
index 834e4a6..ffafbda 100644
|
|
function bp_activity_show_filters( $context = '' ) { |
3397 | 3397 | // Set default context based on current page |
3398 | 3398 | if ( empty( $context ) ) { |
3399 | 3399 | if ( bp_is_user() ) { |
3400 | | switch ( bp_current_action() ) { |
3401 | | case bp_get_groups_slug() : |
3402 | | $context = 'member_groups'; |
3403 | | break; |
3404 | | |
3405 | | default : |
3406 | | $context = 'member'; |
3407 | | break; |
| 3400 | |
| 3401 | if ( ! bp_is_active( 'groups' ) ) { |
| 3402 | $context = 'member'; |
| 3403 | } else { |
| 3404 | switch ( bp_current_action() ) { |
| 3405 | case bp_get_groups_slug() : |
| 3406 | $context = 'member_groups'; |
| 3407 | break; |
| 3408 | |
| 3409 | default : |
| 3410 | $context = 'member'; |
| 3411 | break; |
| 3412 | } |
3408 | 3413 | } |
| 3414 | |
3409 | 3415 | } else if ( bp_is_active( 'groups' ) && bp_is_group() ) { |
3410 | 3416 | $context = 'group'; |
3411 | 3417 | } else { |