WordPress Version: 6.1
/**
* Iterate comment index in the comment loop.
*
* @since 2.2.0
*
* @global WP_Query $wp_query WordPress Query object.
*/
function the_comment()
{
global $wp_query;
if (!isset($wp_query)) {
return;
}
$wp_query->the_comment();
}