Changeset 12703
- Timestamp:
- 08/11/2020 09:11:46 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12623 r12703 4 4 * 5 5 * @since 3.0.0 6 * @version 6.0.06 * @version 7.0.0 7 7 */ 8 8 … … 2036 2036 2037 2037 if ( 'activity' !== bp_current_action() ) { 2038 $component['data_filter'] = 'group_' . bp_current_action(); 2038 /** 2039 * If the Group's front page is not used, Activities are displayed on Group's home page. 2040 * To make sure filters are behaving the right way, we need to override the component object 2041 * and data filter to `activity`. 2042 */ 2043 if ( bp_is_group_activity() ) { 2044 $activity_id = buddypress()->activity->id; 2045 $component['object'] = $activity_id; 2046 $component['data_filter'] = $activity_id; 2047 } else { 2048 $component['data_filter'] = 'group_' . bp_current_action(); 2049 } 2039 2050 } 2040 2051
Note: See TracChangeset
for help on using the changeset viewer.