WordPress.org

Make WordPress Core

Changeset 10196


Ignore:
Timestamp:
12/12/08 20:08:49 (7 years ago)
Author:
ryan
Message:

Fix comment links when displaying first page of comments. Props johnconners. fixes #8583 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment-template.php

    r10180 r10196  
    834834 
    835835    $overridden_cpage = FALSE; 
    836     if ( '' == get_query_var('cpage') && get_option('page_comments') && 'newest' == get_option('default_comments_page') ) { 
    837         set_query_var( 'cpage', get_comment_pages_count() ); 
     836    if ( '' == get_query_var('cpage') && get_option('page_comments') ) { 
     837        set_query_var( 'cpage', 'newest' == get_option('default_comments_page') ? get_comment_pages_count() : 1 ); 
    838838        $overridden_cpage = TRUE; 
    839839    } 
Note: See TracChangeset for help on using the changeset viewer.