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:
parent
45a50d9f72
commit
d0ce444aee
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user