mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user