wp_list_comments() and threaded comment support. First cut. see #7635

git-svn-id: https://develop.svn.wordpress.org/trunk@8869 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-09-11 19:25:50 +00:00
parent 0f6bf551a3
commit 403d9214ed
6 changed files with 194 additions and 36 deletions
+6 -2
View File
@@ -531,7 +531,7 @@ function get_edit_comment_link( $comment_id = 0 ) {
return apply_filters( 'get_edit_comment_link', $location );
}
function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
function edit_comment_link( $link = 'Edit This', $before = '', $after = '', $echo = true ) {
global $comment, $post;
if ( $post->post_type == 'attachment' ) {
@@ -544,7 +544,11 @@ function edit_comment_link( $link = 'Edit This', $before = '', $after = '' ) {
}
$link = '<a href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
$link = $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
if ( $echo )
echo $link;
else
return $link;
}
function get_edit_bookmark_link( $link = 0 ) {