[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
Mon Jun 7 22:28:57 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:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 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.

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


More information about the buddypress-trac mailing list