Skip to:
Content

BuddyPress.org

Ticket #8304: 8304-2b.patch

File 8304-2b.patch, 871 bytes (added by imath, 8 months ago)
  • src/bp-activity/classes/class-bp-activity-list-table.php

    diff --git src/bp-activity/classes/class-bp-activity-list-table.php src/bp-activity/classes/class-bp-activity-list-table.php
    index b9f447a40..6994f952f 100644
    class BP_Activity_List_Table extends WP_List_Table { 
    664664                        $actions['spam'] = sprintf( '<a href="%s">%s</a>', $spam_url, __( 'Spam', 'buddypress' ) );
    665665
    666666                // Delete.
    667                 $actions['delete'] = sprintf( '<a href="%s" onclick="%s">%s</a>', $delete_url, "javascript:return confirm('" . esc_js( __( 'Are you sure?', 'buddypress' ) ) . "'); ", __( 'Delete Permanently', 'buddypress' ) );
     667                $actions['delete'] = sprintf( '<a href="%1$s">%2$s</a>', esc_url( $delete_url ), __( 'Delete Permanently', 'buddypress' ) );
    668668
    669669                // Start timestamp.
    670670                echo '<div class="submitted-on">';