[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
Sun May 9 04:44:59 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:       
----------------------+-----------------------------------------------------
 In BP 1.2.3, would help if the '''bp_get_member_name''' filter on line 578
 in bp-activity/bp-activity-templatetags.php passed the $comment variable.

 Change:

 $content .= '<div class="acomment-meta"><a href="' .
 bp_core_get_user_domain( $comment->user_id, $comment->user_nicename,
 $comment->user_login ) . '">' . apply_filters( 'bp_get_member_name',
 $comment->user_fullname ) . '</a> &middot; ' . sprintf( __( '%s ago',
 'buddypress' ), bp_core_time_since( strtotime( $comment->date_recorded ) )
 );

 to:

 {{{
 $content .= '<div class="acomment-meta"><a href="' .
 bp_core_get_user_domain( $comment->user_id, $comment->user_nicename,
 $comment->user_login ) . '">' . apply_filters( 'bp_get_member_name',
 $comment->user_fullname, $comment ) . '</a> &middot; ' . sprintf( __( '%s
 ago', 'buddypress' ), bp_core_time_since( strtotime(
 $comment->date_recorded ) ) );
 }}}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2374>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list