Skip to:
Content

BuddyPress.org

Ticket #6110: 6110-userid-param.diff

File 6110-userid-param.diff, 892 bytes (added by tw2113, 5 years ago)
  • src/bp-notifications/bp-notifications-functions.php

    diff --git src/bp-notifications/bp-notifications-functions.php src/bp-notifications/bp-notifications-functions.php
    index 3bf0020..9a9c576 100644
    function bp_notifications_get_unread_notification_count( $user_id = 0 ) { 
    614614         * Filters the count of unread notification items for a user.
    615615         *
    616616         * @since 1.9.0
     617         * @since 2.7.0 Added user ID parameter.
    617618         *
    618          * @param int $count Count of unread notification items for a user.
     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
    623625/**