Skip to:
Content

BuddyPress.org

Ticket #2617: 2617.001.diff

File 2617.001.diff, 1.6 KB (added by cnorris23, 14 years ago)
  • bp-forums/bp-forums-templatetags.php

     
    926926                        return;
    927927
    928928                $defaults = array(
    929                         'seperator' => '|'
     929                        'separator' => '|'
    930930                );
    931931
    932932                $r = wp_parse_args( $args, $defaults );
     
    935935                if ( $_SERVER['QUERY_STRING'] )
    936936                        $query_vars = '?' . $_SERVER['QUERY_STRING'];
    937937
    938                 $links  = '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . $topic_template->post->id . 'edit/post/' . $topic_template->post->post_id . '/' . $query_vars, 'bp_forums_edit_post' ) . '">' . __( 'Edit', 'buddypress' ) . '</a> ' . $seperator . ' ';
    939                 $links .= '<a class="confirm" id="post-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . 'delete/post/' . $topic_template->post->post_id, 'bp_forums_delete_post' ) . '">' . __( 'Delete', 'buddypress' ) . '</a> | ';
     938                $links  = apply_filters( 'bp_get_the_topic_post_admin_links_edit_link', '<a href="' . wp_nonce_url( bp_get_the_topic_permalink() . $topic_template->post->id . 'edit/post/' . $topic_template->post->post_id . '/' . $query_vars, 'bp_forums_edit_post' ) . '">' . __( 'Edit', 'buddypress' ) . '</a> ' . $separator . ' ', $topic_template );
     939                $links .= apply_filters( 'bp_get_the_topic_post_admin_links_delete_link', '<a class="confirm" id="post-delete-link" href="' . wp_nonce_url( bp_get_the_topic_permalink() . 'delete/post/' . $topic_template->post->post_id, 'bp_forums_delete_post' ) . '">' . __( 'Delete', 'buddypress' ) . '</a> ' . $separator . ' ', $topic_template );
    940940
    941941                return $links;
    942942        }