[buddypress-trac] [BuddyPress Trac] #6179: notification cound doesn't match on admin bar

buddypress-trac noreply at wordpress.org
Sun Feb 1 15:03:58 UTC 2015


#6179: notification cound doesn't match on admin bar
---------------------------+-----------------------------
 Reporter:  danbp          |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Notifications  |    Version:
 Severity:  normal         |   Keywords:  has-patch
---------------------------+-----------------------------
 BP 2.2 RC2 theme 2013

 All is in the title and the joined picture.

 To reproduce: mention a user several times (more as once preferably :) )

 To solve the issue, i modified the $count in bp_notifications_toolbar_menu
 function (bp-notifications-adminbar.php:20)

 Change

 {{{
 $count = ! empty( $notifications ) ? count( $notifications ) : 0;
 }}}
 to

 {{{
 $count = bp_get_total_mention_count_for_user( bp_loggedin_user_id() );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6179>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list