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

git-svn-id: https://develop.svn.wordpress.org/trunk@10196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-12 20:08:49 +00:00
parent 45a50d9f72
commit d0ce444aee
1 changed files with 2 additions and 2 deletions

View File

@ -833,8 +833,8 @@ function comments_template( $file = '/comments.php', $separate_comments = false
}
$overridden_cpage = FALSE;
if ( '' == get_query_var('cpage') && get_option('page_comments') && 'newest' == get_option('default_comments_page') ) {
set_query_var( 'cpage', get_comment_pages_count() );
if ( '' == get_query_var('cpage') && get_option('page_comments') ) {
set_query_var( 'cpage', 'newest' == get_option('default_comments_page') ? get_comment_pages_count() : 1 );
$overridden_cpage = TRUE;
}