Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/30/2016 11:20:01 PM (10 years ago)
Author:
tw2113
Message:

Pass user ID value to bp_notifications_get_unread_notification_count filter for better conditional checking.

Fixes #6110.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-notifications/bp-notifications-functions.php

    r10911 r11167  
    615615         *
    616616         * @since 1.9.0
    617          *
    618          * @param int $count Count of unread notification items for a user.
     617         * @since 2.7.0 Added user ID parameter.
     618         *
     619         * @param int $count   Count of unread notification items for a user.
     620         * @param int $user_id User ID for notifications count.
    619621         */
    620         return apply_filters( 'bp_notifications_get_total_notification_count', (int) $count );
     622        return apply_filters( 'bp_notifications_get_total_notification_count', (int) $count, $user_id );
    621623}
    622624
Note: See TracChangeset for help on using the changeset viewer.