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