Ticket #7901: 7901.diff

File 7901.diff, 666 bytes (added by Otto42, 5 years ago)

Patch to add $args to comments_reply_link call

Line 
1Index: wp-includes/comment-template.php
2===================================================================
3--- wp-includes/comment-template.php    (revision 9207)
4+++ wp-includes/comment-template.php    (working copy)
5@@ -1084,7 +1084,7 @@
6                <?php echo apply_filters('comment_text', get_comment_text()) ?>
7 
8                <div class="reply">
9-               <?php echo comment_reply_link(array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth'])) ?>
10+               <?php echo comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth']))) ?>
11                <?php if ( 'ul' == $args['style'] ) : ?>
12                </div>
13                <?php endif; ?>