[buddypress-trac] [BuddyPress Trac] #7066: Notifications: Pass the notification ID to the notification callback
    buddypress-trac 
    noreply at wordpress.org
       
    Thu May 19 17:58:26 UTC 2016
    
    
  
#7066: Notifications: Pass the notification ID to the notification callback
---------------------------------------+---------------------
 Reporter:  r-a-y                      |       Owner:  r-a-y
     Type:  enhancement                |      Status:  closed
 Priority:  normal                     |   Milestone:  2.6
Component:  Component - Notifications  |     Version:  2.3.0
 Severity:  normal                     |  Resolution:  fixed
 Keywords:  has-patch                  |
---------------------------------------+---------------------
Changes (by r-a-y):
 * owner:   => r-a-y
 * status:  new => closed
 * resolution:   => fixed
Comment:
 In [changeset:"10790"]:
 {{{
 #!CommitTicketReference repository="" revision="10790"
 Notifications: Pass the notification ID to the notification format
 callback.
 When formatting notifications for a component, there are some cases where
 you might want to reference the notification ID.
 This is especially important if you want to grab some notification meta
 without having to re-query just for the notification ID.
 This commit adds the notification ID to our notification format callbacks:
 - For those registered by the `BP_Component` class
 (`$bp->COMPONENT->notification_callback`)
 - For non-BP components via the
 `'bp_notifications_get_notifications_for_user'` filter.
 Fixes #7066.
 }}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7066#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
    
    
More information about the buddypress-trac
mailing list