Skip to:
Content

Changeset 7677


Ignore:
Timestamp:
12/15/2013 03:09:07 PM (5 years ago)
Author:
boonebgorges
Message:

Don't show notifications from inactive components in admin bar

Inactive components don't have formatting callbacks registered, which means
that those notifications will not be properly formatted. In addition, the
target links of the notifications will 404, with the result that the
notifications will not be marked as read when clicked.

Fixes #5290

Props imath

File:
1 edited

Legend:

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

    r7608 r7677  
    124124    $bp                    = buddypress();
    125125    $notifications         = BP_Notifications_Notification::get( array(
    126         'user_id' => $user_id,
     126        'user_id'        => $user_id,
     127        'component_name' => array_keys( $bp->active_components ),
    127128    ) );
    128129    $grouped_notifications = array(); // Notification groups
Note: See TracChangeset for help on using the changeset viewer.