Ticket #20633: 20633.2.patch
File 20633.2.patch, 717 bytes (added by , 12 years ago) |
---|
-
wp-includes/comment.php
786 786 if ( null === $comments && null === $per_page && null === $threaded && !empty($wp_query->max_num_comment_pages) ) 787 787 return $wp_query->max_num_comment_pages; 788 788 789 if ( !$comments || !is_array($comments) ) 789 if ( empty( $comments ) || ! is_array( $comments ) ) { 790 if ( empty( $wp_query->comments ) ) 791 return 0; 790 792 $comments = $wp_query->comments; 793 } 791 794 792 if ( empty($comments) )793 return 0;794 795 795 if ( !isset($per_page) ) 796 796 $per_page = (int) get_query_var('comments_per_page'); 797 797 if ( 0 === $per_page )