[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:26:55 UTC 2021


#8485: Incorrect number of parameters passed to the filter
'bp_get_activity_content_body' in BP Nouveau template
-------------------------+---------------------
 Reporter:  sbrajesh     |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  8.1.0
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+---------------------

Comment (by imath):

 In [changeset:"12972" 12972]:
 {{{
 #!CommitTicketReference repository="" revision="12972"
 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

 See #8485 (trunk)
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8485#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list