Only count top-level comments when calculating threaded pagination.

The change in [34535] did not properly account for threading.

See #13939, #11334.

git-svn-id: https://develop.svn.wordpress.org/trunk@34805 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Boone Gorges
2015-10-03 19:15:55 +00:00
parent b240a2a939
commit ddc75e22ee
2 changed files with 36 additions and 0 deletions

View File

@@ -881,6 +881,7 @@ function get_page_of_comment( $comment_ID, $args = array() ) {
'fields' => 'ids',
'count' => true,
'status' => 'approve',
'parent' => 0,
'date_query' => array(
array(
'column' => "$wpdb->comments.comment_date_gmt",