wp-content/themes/twentyfifteen/inc/template-tags.php:18 function twentyfifteen_comment_nav() { // Are there comments to navigate through? if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?> <nav class="navigation comment-navigation"> <h2 class="screen-reader-text"> <?php /* translators: Hidden accessibility text. */ _e( 'Comment navigation', 'twentyfifteen' ); ?> </h2> <div class="nav-links"> <?php $prev_link = get_previous_comments_link( __( 'Older Comments', 'twentyfifteen' ) ); if ( $prev_link ) { printf( '<div class="nav-previous">%s</div>', $prev_link ); } $next_link = get_next_comments_link( __( 'Newer Comments', 'twentyfifteen' ) ); if ( $next_link ) { printf( '<div class="nav-next">%s</div>', $next_link ); } ?> </div><!-- .nav-links --> </nav><!-- .comment-navigation --> <?php endif; }Introduced in Twenty Fifteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentyfifteen/inc/template-tags.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.