Changeset 1911
- Timestamp:
- 09/21/2009 09:39:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r1908 r1911 347 347 return false; 348 348 349 $link = remove_query_arg( array( 'afilter' ), $_SERVER['REQUEST_URI'] );350 $link = remove_query_arg( array( 'acpage' ), $link );351 352 349 foreach ( (array) $component_names as $component_name ) { 353 350 if ( isset( $_GET['afilter'] ) && $component_name == $_GET['afilter'] ) … … 375 372 376 373 $link = add_query_arg( 'afilter', $component_name ); 374 $link = remove_query_arg( 'acpage' , $link ); 375 377 376 $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component_name ); 378 377 379 378 $component_links[] = $before . '<a href="' . $link . '">' . ucwords( __( $component_name, 'buddypress' ) ) . '</a>' . $after; 380 379 } 381 380 382 $link = remove_query_arg( array( 'afilter' ), $link );383 381 $link = remove_query_arg( 'afilter' , $link ); 382 384 383 if ( isset( $_GET['afilter'] ) ) 385 384 $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . $link . '"">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
Note: See TracChangeset
for help on using the changeset viewer.