- Timestamp:
- 04/18/2021 10:18:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r12887 r12892 4 4 * 5 5 * @since 3.0.0 6 * @version 7.0.06 * @version 8.0.0 7 7 */ 8 8 … … 2069 2069 2070 2070 } else { 2071 $data_filter = bp_current_component(); 2071 $component_id = bp_current_component(); 2072 if ( ! bp_is_directory() ) { 2073 $component_id = bp_core_get_active_components( array( 'slug' => $component_id ) ); 2074 $component_id = reset( $component_id ); 2075 } 2076 2077 $data_filter = $component_id; 2078 2072 2079 if ( 'friends' === $data_filter && bp_is_user_friend_requests() ) { 2073 2080 $data_filter = 'friend_requests'; … … 2076 2083 $component['members_select'] = 'members-order-select'; 2077 2084 $component['members_order_by'] = 'members-order-by'; 2078 $component['object'] = bp_current_component();2085 $component['object'] = $component_id; 2079 2086 $component['data_filter'] = $data_filter; 2080 2087 } … … 2233 2240 $output = ''; 2234 2241 2235 if ( 'notifications'=== bp_current_component() ) {2242 if ( bp_get_notifications_slug() === bp_current_component() ) { 2236 2243 $output = bp_nouveau_get_notifications_filters(); 2237 2244
Note: See TracChangeset
for help on using the changeset viewer.