Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/11/2010 01:55:04 PM (14 years ago)
Author:
boonebgorges
Message:

Adds apply_filters() to activity comment Reply and Delete links. Fixes #2530

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r3494 r3525  
    692692                /* Reply link - the span is so that threaded reply links can be hidden when JS is off. */
    693693                if ( is_user_logged_in() && bp_activity_can_comment_reply( $comment ) )
    694                     $content .= '<span class="acomment-replylink"> &middot; <a href="#acomment-' . $comment->id . '" class="acomment-reply" id="acomment-reply-' . $activities_template->activity->id . '">' . __( 'Reply', 'buddypress' ) . '</a></span>';
     694                    $content .= apply_filters( 'bp_activity_comment_reply_link', '<span class="acomment-replylink"> &middot; <a href="#acomment-' . $comment->id . '" class="acomment-reply" id="acomment-reply-' . $activities_template->activity->id . '">' . __( 'Reply', 'buddypress' ) . '</a></span>', $comment );
    695695
    696696                /* Delete link */
    697                 if ( $bp->loggedin_user->is_super_admin || $bp->loggedin_user->id == $comment->user_id )
    698                     $content .= ' &middot; <a href="' . wp_nonce_url( $bp->root_domain . '/' . $bp->activity->slug . '/delete/?cid=' . $comment->id, 'bp_activity_delete_link' ) . '" class="delete acomment-delete" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>';
     697                if ( $bp->loggedin_user->is_super_admin || $bp->loggedin_user->id == $comment->user_id ) {
     698                    $delete_url = wp_nonce_url( $bp->root_domain . '/' . $bp->activity->slug . '/delete/?cid=' . $comment->id, 'bp_activity_delete_link' );
     699                    $content .= apply_filters( 'bp_activity_comment_delete_link', ' &middot; <a href="' . $delete_url . '" class="delete acomment-delete" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment, $delete_url );
     700                }
    699701
    700702                $content .= '</div>';
Note: See TracChangeset for help on using the changeset viewer.