WordPress.org

Make WordPress Core

Ticket #35624: 35624.diff

File 35624.diff, 1.1 KB (added by boonebgorges, 5 years ago)
  • src/wp-includes/comment-template.php

    diff --git src/wp-includes/comment-template.php src/wp-includes/comment-template.php
    index a1093b7..75cd717 100644
    function comment_id_fields( $id = 0 ) { 
    18171817 *                             to their comment. Default true.
    18181818 */
    18191819function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
    1820         $comment = get_comment();
     1820        global $comment;
    18211821
    18221822        if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
    18231823        if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );
    function comment_form_title( $noreplytext = false, $replytext = false, $linktopa 
    18271827        if ( 0 == $replytoid )
    18281828                echo $noreplytext;
    18291829        else {
     1830                // Sets the global so that template tags can be used in the comment form.
    18301831                $comment = get_comment($replytoid);
    18311832                $author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author( $comment ) . '</a>' : get_comment_author( $comment );
    18321833                printf( $replytext, $author );