WordPress.org

Make WordPress Core

Changeset 15145


Ignore:
Timestamp:
06/05/10 14:55:18 (4 years ago)
Author:
ryan
Message:

Check if comment paging is on. Props iandstewart. fixes #13739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/comments.php

    r15121 r15145  
    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> 
     
    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> 
Note: See TracChangeset for help on using the changeset viewer.