WordPress.org

Make WordPress Core

Ticket #21370: comment-template.php.patch

File comment-template.php.patch, 1.1 KB (added by devgav, 3 years ago)

Solves #21370

  • wp-includes/comment-template.php

     
    10611061        if ( get_option('comment_registration') && !$user_ID ) 
    10621062                $link = '<a rel="nofollow" class="comment-reply-login" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">' . $login_text . '</a>'; 
    10631063        else 
    1064                 $link = "<a class='comment-reply-link' href='" . esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>"; 
     1064                $link = "<a rel='nofollow' class='comment-reply-link' href='" . esc_url( add_query_arg( 'replytocom', $comment->comment_ID ) ) . "#" . $respond_id . "' onclick='return addComment.moveForm(\"$add_below-$comment->comment_ID\", \"$comment->comment_ID\", \"$respond_id\", \"$post->ID\")'>$reply_text</a>"; 
    10651065        return apply_filters('comment_reply_link', $before . $link . $after, $args, $comment, $post); 
    10661066} 
    10671067