Only count top-level comments when calculating threaded pagination.

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

See #13939, #11334.
Built from https://develop.svn.wordpress.org/trunk@34805


git-svn-id: http://core.svn.wordpress.org/trunk@34770 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2015-10-03 19:16:24 +00:00
parent 198dee542d
commit cd5cd380e8
2 changed files with 2 additions and 1 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",

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34804';
$wp_version = '4.4-alpha-34805';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.