#8485 closed enhancement (fixed)
Incorrect number of parameters passed to the filter 'bp_get_activity_content_body' in BP Nouveau template
| Reported by: | sbrajesh | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 9.0.0 |
| Component: | Core | Version: | |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Good catch! Thanks for your report and patch π. Letβs include it in next minor release.