Skip to:
Content

BuddyPress.org

Changeset 1911


Ignore:
Timestamp:
09/21/2009 09:39:25 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1050 props jjj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r1908 r1911  
    347347            return false;
    348348       
    349         $link = remove_query_arg( array( 'afilter' ), $_SERVER['REQUEST_URI'] );
    350         $link = remove_query_arg( array( 'acpage' ), $link );
    351 
    352349        foreach ( (array) $component_names as $component_name ) {
    353350            if ( isset( $_GET['afilter'] ) && $component_name == $_GET['afilter'] )
     
    375372           
    376373            $link = add_query_arg( 'afilter', $component_name );
     374            $link = remove_query_arg( 'acpage' , $link );
     375
    377376            $link = apply_filters( 'bp_get_activity_filter_link_href', $link, $component_name );
    378            
     377
    379378            $component_links[] = $before . '<a href="' . $link . '">' . ucwords( __( $component_name, 'buddypress' ) ) . '</a>' . $after;
    380379        }
    381380
    382         $link = remove_query_arg( array( 'afilter' ), $link );
    383        
     381        $link = remove_query_arg( 'afilter' , $link );
     382
    384383        if ( isset( $_GET['afilter'] ) )
    385384            $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . $link . '"">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';
Note: See TracChangeset for help on using the changeset viewer.