From bf16aac8e1df802f1e50b496f72b065af8e1686f Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 15 Oct 2014 21:56:19 +0000 Subject: [PATCH] Comments: Don't print an empty HTML markup when `comment_reply_link()` returns no link. props obenland. fixes #29895. Built from https://develop.svn.wordpress.org/trunk@29908 git-svn-id: http://core.svn.wordpress.org/trunk@29662 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 3083fc5223..41b1133573 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -1839,9 +1839,16 @@ class Walker_Comment extends Walker { $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
- $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
+ $add_below, + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + 'before' => '
', + 'after' => '
' + ) ) ); + ?> + @@ -1889,9 +1896,15 @@ class Walker_Comment extends Walker { -
- 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
+ 'div-comment', + 'depth' => $depth, + 'max_depth' => $args['max_depth'], + 'before' => '
', + 'after' => '
' + ) ) ); + ?>