Changeset 4451
- Timestamp:
- 06/04/2011 09:28:12 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-template.php
r4431 r4451 634 634 635 635 $tabs = array(); 636 for ( $i = 0 ; $i < count($groups); $i++ ) {636 for ( $i = 0, $count = count( $groups ); $i < $count; $i++ ) { 637 637 if ( $group_name == $groups[$i]->name ) 638 638 $selected = ' class="current"'; … … 642 642 if ( !empty( $groups[$i]->fields ) ) { 643 643 $link = $bp->displayed_user->domain . $bp->profile->slug . '/edit/group/' . $groups[$i]->id; 644 $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a>< li>', $selected, $link, esc_html( $groups[$i]->name ) );644 $tabs[] = sprintf( '<li %1$s><a href="%2$s">%3$s</a></li>', $selected, $link, esc_html( $groups[$i]->name ) ); 645 645 } 646 646 } 647 647 648 648 $tabs = apply_filters( 'xprofile_filter_profile_group_tabs', $tabs, $groups, $group_name ); 649 foreach ( (array) $tabs as $tab )649 foreach ( (array) $tabs as $tab ) 650 650 echo $tab; 651 651
Note: See TracChangeset
for help on using the changeset viewer.