mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-02 00:00:15 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user