Ticket #20633: 20633.diff
File 20633.diff, 638 bytes (added by , 13 years ago) |
---|
-
wp-includes/comment.php
function get_comment_pages_count( $comments = null, $per_page = null, $threaded 752 752 if ( null === $comments && null === $per_page && null === $threaded && !empty($wp_query->max_num_comment_pages) ) 753 753 return $wp_query->max_num_comment_pages; 754 754 755 if ( !$comments || !is_array($comments) )755 if ( ( !$comments || !is_array($comments) ) && !empty( $wp_query->comments ) ) 756 756 $comments = $wp_query->comments; 757 757 758 758 if ( empty($comments) )