- Timestamp:
- 06/06/2017 05:46:21 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/classes/class-bp-messages-component.php
r11577 r11578 146 146 // Only grab count if we're on a user page and current user has access. 147 147 if ( bp_is_user() && bp_user_has_access() ) { 148 $count = bp_get_total_unread_messages_count( );148 $count = bp_get_total_unread_messages_count( bp_displayed_user_id() ); 149 149 $class = ( 0 === $count ) ? 'no-count' : 'count'; 150 150 $nav_name = sprintf( … … 253 253 254 254 // Unread message count. 255 $count = messages_get_unread_count( );255 $count = messages_get_unread_count( bp_loggedin_user_id() ); 256 256 if ( !empty( $count ) ) { 257 257 $title = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.