Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/08/2013 05:38:58 AM (11 years ago)
Author:
johnjamesjacoby
Message:

Add $is_new to bp_notifications_add_notification(), allowing developers to add notifications to the log without requiring user intervention. See #5148.

File:
1 edited

Legend:

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

    r7529 r7532  
    4242        'component_action'  => '',
    4343        'date_notified'     => bp_core_current_time(),
     44        'is_new'            => 1
    4445    ) );
    4546
     
    5253    $notification->component_action  = $r['component_action'];
    5354    $notification->date_notified     = $r['date_notified'];
    54     $notification->is_new            = 1;
     55    $notification->is_new            = $r['is_new'];
    5556
    5657    // Save the new notification
Note: See TracChangeset for help on using the changeset viewer.