Add paging links above comments list. Props Viper007Bond. fixes #8219

git-svn-id: https://develop.svn.wordpress.org/trunk@10097 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-12-07 04:49:22 +00:00
parent 7aa321accc
commit fc8c54d3d9
3 changed files with 13 additions and 1 deletions

View File

@@ -513,6 +513,9 @@ function &separate_comments(&$comments) {
function get_comment_pages_count( $comments = null, $per_page = null, $threaded = null ) {
global $wp_query;
if ( null === $comments && null === $per_page && null === $threaded && !empty($wp_query->max_num_comment_pages) )
return $wp_query->max_num_comment_pages;
if ( !$comments || !is_array($comments) )
$comments = $wp_query->comments;