Changeset 5705 for trunk/bp-friends/bp-friends-loader.php
- Timestamp:
- 02/11/2012 03:21:00 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends/bp-friends-loader.php
r5704 r5705 91 91 global $bp; 92 92 93 $sub_nav = array(); 94 93 95 // Add 'Friends' to the main navigation 94 96 $main_nav = array( … … 146 148 147 149 // Pending friend requests 148 if ( $count = count( friends_get_friendship_request_user_ids( bp_loggedin_user_id() ) ) ) { 149 $title = sprintf( __( 'Friends <span class="count">%s</span>', 'buddypress' ), $count ); 150 $pending = sprintf( __( 'Pending Requests <span class="count">%s</span>', 'buddypress' ), $count ); 150 $count = count( friends_get_friendship_request_user_ids( bp_loggedin_user_id() ) ); 151 if ( !empty( $count ) ) { 152 $title = sprintf( __( 'Friends <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) ); 153 $pending = sprintf( __( 'Pending Requests <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) ); 151 154 } else { 152 155 $title = __( 'Friends', 'buddypress' ); … … 200 203 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() ) 201 204 ) ); 202 $bp->bp_options_title = $bp->displayed_user->fullname;205 $bp->bp_options_title = bp_get_displayed_user_fullname(); 203 206 } 204 207 }
Note: See TracChangeset
for help on using the changeset viewer.