Make WordPress Core

Ticket #35433: 35433.diff

File 35433.diff, 644 bytes (added by rachelbaker, 7 years ago)

Passing the entire WP_Comment object to the comment_text function

  • src/wp-includes/class-walker-comment.php

     
    287287                        ?>
    288288                </div>
    289289
    290                 <?php comment_text( get_comment_id(), array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
     290                <?php comment_text( $comment, array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    291291
    292292                <?php
    293293                comment_reply_link( array_merge( $args, array(