Skip to:
Content

bbPress.org

Ticket #2734: 2734.2.diff

File 2734.2.diff, 1.6 KB (added by tharsheblows, 11 years ago)

sorry, everything got jumbled up in the first one. this one should work.

  • src/includes/admin/replies.php

     
    818818                if ( current_user_can( 'delete_reply', $reply->ID ) ) {
    819819                        if ( bbp_get_trash_status_id() === $reply->post_status ) {
    820820                                $post_type_object   = get_post_type_object( bbp_get_reply_post_type() );
    821                                 $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . "' href='" . add_query_arg( array( '_wp_http_referer' => add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), admin_url( 'edit.php' ) ) ), wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $reply->ID ) ), 'untrash-' . $reply->post_type . '_' . $reply->ID ) ) . "'>" . esc_html__( 'Restore', 'bbpress' ) . "</a>";
     821                                $actions['untrash'] = "<a title='" . esc_attr__( 'Restore this item from the Trash', 'bbpress' ) . "' href='" . wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $reply->ID ) ), 'untrash-post_' . $reply->ID ) . "'>" . esc_html__( 'Restore', 'bbpress' ) . "</a>";
    822822                        } elseif ( EMPTY_TRASH_DAYS ) {
    823823                                $actions['trash'] = "<a class='submitdelete' title='" . esc_attr__( 'Move this item to the Trash', 'bbpress' ) . "' href='" . add_query_arg( array( '_wp_http_referer' => add_query_arg( array( 'post_type' => bbp_get_reply_post_type() ), admin_url( 'edit.php' ) ) ), get_delete_post_link( $reply->ID ) ) . "'>" . esc_html__( 'Trash', 'bbpress' ) . "</a>";
    824824                        }