diff --git a/src/bp-templates/bp-legacy/buddypress-functions.php b/src/bp-templates/bp-legacy/buddypress-functions.php
index 5e7e22ca4..b4ec1481f 100644
a
|
b
|
function bp_legacy_theme_ajax_querystring( $query_string, $object ) { |
686 | 686 | */ |
687 | 687 | |
688 | 688 | // Activity stream filtering on action. |
689 | | if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) { |
690 | | $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter']; |
691 | | |
692 | | $actions = bp_activity_get_actions_for_context(); |
693 | | foreach ( $actions as $action ) { |
694 | | if ( $action['key'] === $_BP_COOKIE['bp-' . $object . '-filter'] ) { |
695 | | $qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter']; |
| 689 | if ( bp_is_active('activity') ) { |
| 690 | if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) { |
| 691 | $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter']; |
| 692 | |
| 693 | $actions = bp_activity_get_actions_for_context(); |
| 694 | foreach ( $actions as $action ) { |
| 695 | if ( $action['key'] === $_BP_COOKIE['bp-' . $object . '-filter'] ) { |
| 696 | $qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter']; |
| 697 | } |
696 | 698 | } |
697 | 699 | } |
698 | 700 | } |