[buddypress-trac] [BuddyPress Trac] #7213: Action "bp_notification_before_save" gets wrong argument

buddypress-trac noreply at wordpress.org
Fri Aug 5 10:57:26 UTC 2016


#7213: Action "bp_notification_before_save" gets wrong argument
-------------------------------------+-----------------------------
 Reporter:  wordpressrene            |      Owner:
     Type:  defect (bug)             |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Toolbar & Notifications  |    Version:
 Severity:  normal                   |   Keywords:
-------------------------------------+-----------------------------
 The action "bp_notification_before_save" in the class
 "BP_Notifications_Notification" in the function "save()" pass the wrong
 parameter. The data of the notification ({{{$this}}}) is saved in the
 variable {{{$data}}} before the action. Then the action is called with the
 parameter {{{$this}}}. After that the notification is stored in the
 database with the values of {{{$data}}}. So you can't change the data
 before saving.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7213>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list