Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2011 04:24:55 PM (15 years ago)
Author:
djpaul
Message:

When posting to activity stream, make the AJAX-returned markup identical to the rest of the activity stream items. See #2016

File:
1 edited

Legend:

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

    r4239 r4255  
    822822                        $comment_child->user_login ) . '">' .
    823823                    bp_core_fetch_avatar( array(
     824                        'alt'    => __( 'Profile picture of %s', 'buddypress' ),
    824825                        'item_id' => $comment_child->user_id,
    825826                        'width'   => 30,
     
    845846                if ( $bp->loggedin_user->is_super_admin || $bp->loggedin_user->id == $comment->user_id ) {
    846847                    $delete_url = wp_nonce_url( bp_get_root_domain() . '/' . $bp->activity->slug . '/delete/?cid=' . $comment_child->id, 'bp_activity_delete_link' );
    847                     $content .= apply_filters( 'bp_activity_comment_delete_link', ' &middot; <a href="' . $delete_url . '" class="delete acomment-delete" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment_child, $delete_url );
     848                    $content .= apply_filters( 'bp_activity_comment_delete_link', ' &middot; <a href="' . $delete_url . '" class="delete acomment-delete confirm" rel="nofollow">' . __( 'Delete', 'buddypress' ) . '</a>', $comment_child, $delete_url );
    848849                }
    849850
Note: See TracChangeset for help on using the changeset viewer.