mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user