The check is done with get_option('page_comments')
.
But you could use another solution:
$prev = get_previous_comments_link();
$next = get_next_comments_link();
if ( '' !== $prev . $next )
echo "<div>$prev $next</div>";
The check is done with get_option('page_comments')
.
But you could use another solution:
$prev = get_previous_comments_link();
$next = get_next_comments_link();
if ( '' !== $prev . $next )
echo "<div>$prev $next</div>";