[buddypress-trac] [BuddyPress Trac] #8485: Incorrect number of parameters passed to the filter 'bp_get_activity_content_body' in BP Nouveau template
buddypress-trac
noreply at wordpress.org
Sat Jun 12 11:28:21 UTC 2021
#8485: Incorrect number of parameters passed to the filter
'bp_get_activity_content_body' in BP Nouveau template
-------------------------+---------------------
Reporter: sbrajesh | Owner: imath
Type: enhancement | Status: closed
Priority: normal | Milestone: 8.1.0
Component: Core | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"12973" 12973]:
{{{
#!CommitTicketReference repository="" revision="12973"
BP Nouveau: apply the activity content filter the right way
Inside the BP Nouveau Template pack, the
`bp_nouveau_ajax_get_single_activity_content()` function was applying the
`'bp_get_activity_content_body'` filter using the wrong function and
wasn't passing the second parameter of the filter:
- Instead of using `apply_filters()` it should use
`apply_filters_ref_array()`.
- The filter parameters should also include the Activity object passed by
reference.
Props sbrajesh
Fixes #8485 (branch 8.0)
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8485#comment:4>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list