Skip to:
Content

BuddyPress.org

Changeset 7913


Ignore:
Timestamp:
02/17/2014 06:24:43 PM (11 years ago)
Author:
boonebgorges
Message:

Use the correct function to get notification unread count for buddybar

Fixes #5403

Props lenasterg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-notifications/bp-notifications-buddybar.php

    r7628 r7913  
    2828    _e( 'Notifications', 'buddypress' );
    2929
    30     if ( $notifications = bp_notifications_get_notifications_for_user( bp_loggedin_user_id() ) ) : ?>
    31         <span><?php echo number_format_i18n( $notifications ); ?></span>
     30    if ( $notification_count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ) ) : ?>
     31        <span><?php echo bp_core_number_format( $notification_count ); ?></span>
    3232    <?php
    3333    endif;
Note: See TracChangeset for help on using the changeset viewer.