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
+1
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']);