Display text based on comment reply status.

Only affects users with Javascript disabled.

Signature

comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true )
noreplytext
 (string) Optional. Text to display when not replying to a comment. Default false.
Default: false
replytext
 (string) Optional. Text to display when replying to a comment. Default false. Accepts "%s" for the author of the comment being replied to.
Default: false
linktoparent
 (string) Optional. Boolean to control making the author's name a link to their comment. Default true.
Default: true

Return

(void)

Source

function comment_form_title( $noreplytext = false, $replytext = false, $linktoparent = true ) {
	global $comment;

	if ( false === $noreplytext ) $noreplytext = __( 'Leave a Reply' );
	if ( false === $replytext ) $replytext = __( 'Leave a Reply to %s' );

	$replytoid = isset($_GET['replytocom']) ? (int) $_GET['replytocom'] : 0;

	if ( 0 == $replytoid )
		echo $noreplytext;
	else {
		$comment = get_comment($replytoid);
		$author = ( $linktoparent ) ? '<a href="#comment-' . get_comment_ID() . '">' . get_comment_author() . '</a>' : get_comment_author();
		printf( $replytext, $author );
	}
}
WP Trac GitHub

Link here