Changeset 11421
- Timestamp:
- 02/08/2017 08:30:06 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11419 r11421 687 687 688 688 // Activity stream filtering on action. 689 if ( bp_is_active( 'activity' ) &&! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) {689 if ( ! empty( $_BP_COOKIE['bp-' . $object . '-filter'] ) && '-1' != $_BP_COOKIE['bp-' . $object . '-filter'] ) { 690 690 $qs[] = 'type=' . $_BP_COOKIE['bp-' . $object . '-filter']; 691 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']; 692 if ( bp_is_active( 'activity' ) ) { 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 }
Note: See TracChangeset
for help on using the changeset viewer.