Changeset 2052 for branches/1.1/bp-activity/bp-activity-templatetags.php
- Timestamp:
- 10/22/2009 05:06:04 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bp-activity/bp-activity-templatetags.php
r1980 r2052 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.