WordPress.org

Make WordPress Core

Ticket #13739: comments-nav.diff

File comments-nav.diff, 1.3 KB (added by iandstewart, 8 years ago)
  • comments.php

     
    3636                        number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
    3737                        ?></h3>
    3838
    39 <?php if ( get_comment_pages_count() > 1 ) : // Are there comments to navigate through? ?>
     39<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    4040                        <div class="navigation">
    4141                                <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
    4242                                <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
     
    5555                                ?>
    5656                        </ol>
    5757
    58 <?php if ( get_comment_pages_count() > 1 ) : // Are there comments to navigate through? ?>
     58<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    5959                        <div class="navigation">
    6060                                <div class="nav-previous"><?php previous_comments_link( __( '<span class="meta-nav">&larr;</span> Older Comments', 'twentyten' ) ); ?></div>
    6161                                <div class="nav-next"><?php next_comments_link( __( 'Newer Comments <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>