Skip to:
Content

BuddyPress.org

Ticket #2405: 2405.001.diff

File 2405.001.diff, 2.1 KB (added by cnorris23, 14 years ago)
  • bp-activity/bp-activity-filters.php

     
    5252add_filter( 'bp_get_activity_parent_content', 'stripslashes_deep' );
    5353add_filter( 'bp_get_activity_latest_update', 'stripslashes_deep' );
    5454add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
     55add_filter( 'bp_acomment_name', 'stripslashes_deep' );
    5556
    5657add_filter( 'bp_get_activity_content', 'bp_activity_make_nofollow_filter' );
    5758add_filter( 'bp_get_activity_content_body', 'bp_activity_make_nofollow_filter' );
  • bp-activity/bp-activity-templatetags.php

     
    576576
    577577                                $content .= '<li id="acomment-' . $comment->id . '">';
    578578                                $content .= '<div class="acomment-avatar"><a href="' . bp_core_get_user_domain( $comment->user_id, $comment->user_nicename, $comment->user_login ) . '">' . bp_core_fetch_avatar( array( 'item_id' => $comment->user_id, 'width' => 25, 'height' => 25, 'email' => $comment->user_email ) ) . '</a></div>';
    579                                 $content .= '<div class="acomment-meta"><a href="' . bp_core_get_user_domain( $comment->user_id, $comment->user_nicename, $comment->user_login ) . '">' . apply_filters( 'bp_acomment_name', $comment->user_fullname, $comment ) . '</a> &middot; ' . sprintf( __( '%s ago', 'buddypress' ), bp_core_time_since( strtotime( $comment->date_recorded ) ) );
     579                                $content .= '<div class="acomment-meta"><a href="' . bp_core_get_user_domain( $comment->user_id, $comment->user_nicename, $comment->user_login ) . '">' . apply_filters( 'bp_acomment_name', $comment->user_fullname, $comment ) . '</a> &middot; ' . sprintf( __( '%s ago', 'buddypress' ), bp_core_time_since( $comment->date_recorded ) );
    580580
    581581                                /* Reply link - the span is so that threaded reply links can be hidden when JS is off. */
    582582                                if ( is_user_logged_in() )