[buddypress-trac] [BuddyPress Trac] #6669: Blank notifications when using the bp_notifications_get_notifications_for_user filter hook

buddypress-trac noreply at wordpress.org
Wed Apr 27 19:18:02 UTC 2016


#6669: Blank notifications when using the
bp_notifications_get_notifications_for_user filter hook
---------------------------------------+----------------------
 Reporter:  henry.wright               |       Owner:
     Type:  defect (bug)               |      Status:  closed
 Priority:  normal                     |   Milestone:
Component:  Component - Notifications  |     Version:
 Severity:  normal                     |  Resolution:  invalid
 Keywords:                             |
---------------------------------------+----------------------

Comment (by r-a-y):

 In [changeset:"10725"]:
 {{{
 #!CommitTicketReference repository="" revision="10725"
 Notifications: Introduce two new parameters to the
 `'bp_notifications_get_notifications_for_user'` filter.

 This commit:
 * Adds `$component_action_name` and `$component_name` as the 6th and 7th
 parameters to the filter.
 * Updates the DocBlock for the filter.

 In the DocBlock, we are deprecating the first parameter, which is the
 component action name.  It is recommended to do notification action name
 checks against the 6th parameter from now on.

 The reason why we are deprecating the first parameter is due to potential
 plugin conflicts. If a plugin is doing a specific check on the
 notification
 action and changes the return value for the filter, then no other plugin
 can do checks for that same notification action.  Also see #6669.

 Fixes #7020.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6669#comment:12>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list