mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user