Skip to:
Content

BuddyPress.org

Ticket #5290: 5290.diff

File 5290.diff, 713 bytes (added by imath, 10 years ago)
  • bp-notifications/bp-notifications-functions.php

     
    122122
    123123        // Setup local variables
    124124        $bp                    = buddypress();
     125        $active_components = array_keys(  $bp->active_components );
    125126        $notifications         = BP_Notifications_Notification::get( array(
    126                 'user_id' => $user_id,
     127                'user_id'        => $user_id,
     128                'component_name' => $active_components,
    127129        ) );
    128130        $grouped_notifications = array(); // Notification groups
    129131        $renderable            = array(); // Renderable notifications