• Buddypress 3.0 now requires that bp_notifications_get_notifications_for_user have 8 parameters instead of 5. Therefore, I had to change:

    /** This filter is documented in bp-notifications/bp-notifications-functions.php */
                    $description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array(
                            $notification->component_action,
                            $notification->item_id,
                            $notification->secondary_item_id,
                            1
                    ) );

    to

    /** This filter is documented in bp-notifications/bp-notifications-functions.php */
                    $description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array(
                            $notification->component_action,
                            $notification->item_id,
                            $notification->secondary_item_id,
                            1,
                            'string',
                            $notification->component_action,
                            $notification->component_name,
                            $notification->id,
                    ) );

    to get it stop throwing errors with my “bp_notifications_get_notifications_for_user” custom filter.

    • This topic was modified 6 years, 9 months ago by ethanstein.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘bpln_get_the_notification_description broken’ is closed to new replies.