wp-includes/comment-template.php:1191Displays the comment type of the current comment.
$commenttxtstring|falseoptionalfalse$trackbacktxtstring|falseoptionalfalse$pingbacktxtstring|falseoptionalfalsefunction comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) { if ( false === $commenttxt ) { $commenttxt = _x( 'Comment', 'noun' ); } if ( false === $trackbacktxt ) { $trackbacktxt = __( 'Trackback' ); } if ( false === $pingbacktxt ) { $pingbacktxt = __( 'Pingback' ); } $type = get_comment_type(); switch ( $type ) { case 'trackback': echo $trackbacktxt; break; case 'pingback': echo $pingbacktxt; break; default: echo $commenttxt; }}Introduced in 0.71. 6 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$comment_text added.verified against source$trackback_text added.verified against source$pingback_text added.verified against source$commenttxt removed.verified against source$trackbacktxt removed.verified against source$pingbacktxt removed.verified against sourcesrc/wp-includes/comment-template.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.