Fix comment display when paging is off. see #7769

git-svn-id: https://develop.svn.wordpress.org/trunk@8964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-09-24 05:20:17 +00:00
parent c724813461
commit 1811b9a81a
2 changed files with 3 additions and 1 deletions

View File

@ -1012,9 +1012,10 @@ class Walker {
}
$total_top = count( $top_level_elements );
if ( $paging )
$this->max_pages = ceil($total_top / $per_page);
else
$end = $total_top;
foreach( $top_level_elements as $e ){
$count++;

View File

@ -1015,6 +1015,7 @@ function wp_list_comments($args = array(), $comments = null ) {
$r['per_page'] = get_query_var('comments_per_page');
if ( empty($r['per_page']) ) {
$r['per_page'] = 0;
$r['page'] = 0;
} else {
$r['page'] = intval($r['page']);