[buddypress-trac] [BuddyPress] #2374: Pass $comment parameter for "bp_get_member_name" filter

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Thu May 13 17:35:40 UTC 2010

#2374: Pass $comment parameter for "bp_get_member_name" filter
 Reporter:  r-a-y     |       Owner:       
     Type:  defect    |      Status:  new  
 Priority:  minor     |   Milestone:  1.2.4
Component:  Activity  |    Keywords:       

Comment(by r-a-y):

 Just found out that the '''bp_get_member_name''' filter already exists in
 the bp_get_member_name() function (on line 254 in bp-core-
 templatetags.php) and it only accepts one argument.

 So one additional change must be made here:

 return apply_filters( 'bp_get_member_name',
 $members_template->member->fullname, null );


 I realize this is not the right way to go about this, so instead, I'd like
 to propose renaming the filter on line 578 in bp-activity/bp-activity-
 templatetags.php to something like:

 apply_filters( 'bp_acomment_name', $comment->user_fullname, $comment )

Ticket URL: <http://trac.buddypress.org/ticket/2374#comment:1>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list