_s: Use comment_reply_link arguments to wrap reply link

Avoid empty div if no reply link
This commit is contained in:
Thomas Guillot 2013-08-19 10:18:10 +01:00
parent a462ad5720
commit 966d649f3c
1 changed files with 9 additions and 3 deletions

View File

@ -99,9 +99,15 @@ function _s_comment( $comment, $args, $depth ) {
<?php comment_text(); ?>
</div><!-- .comment-content -->
<div class="reply">
<?php comment_reply_link( array_merge( $args, array( 'add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
</div><!-- .reply -->
<?php
comment_reply_link( array_merge( $args, array(
'add_below' => 'div-comment',
'depth' => $depth,
'max_depth' => $args['max_depth'],
'before' => '<div class="reply">',
'after' => '</div>',
) ) );
?>
</article><!-- .comment-body -->
<?php