Changeset 2055 for trunk/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 10/26/2009 05:31:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-templatetags.php
r1980 r2055 352 352 else 353 353 unset($selected); 354 355 $component_name = attribute_escape( $component_name ); 354 356 355 357 switch ( $style ) { … … 379 381 $translatable_component_names = array( __( 'profile', 'buddypress'), __( 'friends', 'buddypress' ), __( 'groups', 'buddypress' ), __( 'status', 'buddypress' ), __( 'blogs', 'buddypress' ) ); 380 382 381 $component_links[] = $before . '<a href="' . $link. '">' . ucwords( __( $component_name, 'buddypress' ) ) . '</a>' . $after;383 $component_links[] = $before . '<a href="' . attribute_escape( $link ) . '">' . ucwords( __( $component_name, 'buddypress' ) ) . '</a>' . $after; 382 384 } 383 385 … … 385 387 386 388 if ( isset( $_GET['afilter'] ) ) 387 $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . $link. '"">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>';389 $component_links[] = '<' . $tag . ' id="afilter-clear"><a href="' . attribute_escape( $link ) . '"">' . __( 'Clear Filter', 'buddypress' ) . '</a></' . $tag . '>'; 388 390 389 391 return apply_filters( 'bp_get_activity_filter_links', implode( "\n", $component_links ) );
Note: See TracChangeset
for help on using the changeset viewer.