#8485 closed enhancement (fixed)
Incorrect number of parameters passed to the filter 'bp_get_activity_content_body' in BP Nouveau template
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 9.0.0 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | has-patch |
Cc: |
Description
The filter 'bp_get_activity_content_body' is being created at many places in BuddyPress.
All the instances pass 2 parameters, the content and the activity object.
There are 2 places where only one parameter is passed(content).
It is in bp-nouveau/includes/activity/ajax.php line 313
/** This filter is documented in bp-activity/bp-activity-template.php */ $content = apply_filters( 'bp_get_activity_content_body', $activity->content );
which should be
/** This filter is documented in bp-activity/bp-activity-template.php */ $content = apply_filters( 'bp_get_activity_content_body', $activity->content, $activity );
Another instance is in bp-default theme. Since the bp-default was deprectade long ago, we may ignore that.
Please find a patch attached for the same.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Good catch! Thanks for your report and patch π. Letβs include it in next minor release.