- Timestamp:
- 07/26/2017 07:03:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-legacy/buddypress-functions.php
r11606 r11651 693 693 if ( bp_is_active( 'activity' ) ) { 694 694 $actions = bp_activity_get_actions_for_context(); 695 foreach ( $actions as $action ) { 696 if ( $action['key'] === $_BP_COOKIE['bp-' . $object . '-filter'] ) { 697 $qs[] = 'action=' . $_BP_COOKIE['bp-' . $object . '-filter']; 698 } 695 696 // Handle multiple actions (eg. 'friendship_accepted,friendship_created') 697 $action_filter = explode( ',', $_BP_COOKIE['bp-' . $object . '-filter'] ); 698 699 // See if action filter matches registered actions. If so, add it to qs. 700 if ( ! array_diff( $action_filter, wp_list_pluck( $actions, 'key' ) ) ) { 701 $qs[] = 'action=' . join( ',', $action_filter ); 699 702 } 700 703 }
Note: See TracChangeset
for help on using the changeset viewer.