Changeset 7828 for trunk/bp-friends/bp-friends-template.php
- Timestamp:
- 02/07/2014 06:15:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-template.php
r7764 r7828 580 580 if ( ! empty( $r['user_id'] ) ) { 581 581 582 // Get the user groups582 // Get the user's friends 583 583 if ( empty( $r['friends'] ) ) { 584 584 $r['friends'] = absint( friends_get_total_friend_count( $r['user_id'] ) ); 585 585 } 586 586 587 // If groups exist, show some formatted output588 $r['output'] = $r['before'] . sprintf( _n( ' 1 friend', '<strong>%s</strong> friends', $r['friends'], 'buddypress' ), $r['friends']) . $r['after'];587 // If friends exist, show some formatted output 588 $r['output'] = $r['before'] . sprintf( _n( '%s friend', '%s friends', $r['friends'], 'buddypress' ), '<strong>' . $r['friends'] . '</strong>' ) . $r['after']; 589 589 } 590 590 }
Note: See TracChangeset
for help on using the changeset viewer.