Skip to:
Content

BuddyPress.org

Ticket #8304: 8304.patch

File 8304.patch, 1.1 KB (added by oztaser, 8 months ago)
  • src/bp-activity/bp-activity-admin.php

     
    741741 * @param object $item Activity item.
    742742 */
    743743function bp_activity_admin_edit_metabox_status( $item ) {
     744        $delete_url = add_query_arg( array(
     745                'page'     => 'bp-activity',
     746                'action'   => 'delete',
     747                'aid'      => $item->id,
     748                '_wpnonce' => wp_create_nonce( 'spam-activity_' . $item->id )
     749        ), bp_get_admin_url( 'admin.php' ) );
    744750?>
    745751
    746752        <div class="submitbox" id="submitcomment">
     
    783789                </div><!-- #minor-publishing -->
    784790
    785791                <div id="major-publishing-actions">
     792                        <div id="delete-action">
     793                                <a class="submitdelete deletion" href="<?php echo esc_url( $delete_url ); ?>" onclick="javascript:return confirm('<?php echo esc_js( __( 'Are you sure?', 'buddypress' ) ); ?>')"><?php _e( 'Delete Permanently', 'buddypress' ) ?></a>
     794                        </div>
     795
    786796                        <div id="publishing-action">
    787797                                <?php submit_button( __( 'Update', 'buddypress' ), 'primary', 'save', false ); ?>
    788798                        </div>