WordPress.org

Make WordPress Core

Ticket #7901: 7901.diff

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

Patch to add $args to comments_reply_link call

  • wp-includes/comment-template.php

     
    10841084                <?php echo apply_filters('comment_text', get_comment_text()) ?> 
    10851085 
    10861086                <div class="reply"> 
    1087                 <?php echo comment_reply_link(array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth'])) ?> 
     1087                <?php echo comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['depth']))) ?> 
    10881088                <?php if ( 'ul' == $args['style'] ) : ?> 
    10891089                </div> 
    10901090                <?php endif; ?>