Ticket #40293: comment-template.patch
File comment-template.patch, 592 bytes (added by , 8 years ago) |
---|
-
wp-includes/comment-template.php
1376 1376 1377 1377 $top_level_count = $top_level_query->query( $top_level_args ); 1378 1378 1379 $comment_args['offset'] = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page; 1379 if ( $top_level_count && $per_page ) { 1380 $comment_args['offset'] = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page; 1381 } else { 1382 $comment_args['offset'] = 0; 1383 } 1380 1384 } 1381 1385 } 1382 1386