Ticket #38074: 38074.diff
File 38074.diff, 1.2 KB (added by , 5 years ago) |
---|
-
comment-template.php
1428 1428 if ( isset( $comment_args['include_unapproved'] ) ) { 1429 1429 $top_level_args['include_unapproved'] = $comment_args['include_unapproved']; 1430 1430 } 1431 1431 1432 /** 1433 * Filters the arguments used in the top level commments query. 1434 * 1435 * @see WP_Comment_Query::__construct() 1436 * 1437 * @param array $top_level_args { 1438 * @type bool $count Whether to return a comment count. 1439 * @type string|array $orderby Field(s) to order by. 1440 * @type int $post_id ID of post 1441 * @type string|array $status Comment status to limit results by. 1442 * } 1443 */ 1444 $top_level_args = apply_filters( 'comments_template_top_level_query_args', $top_level_args ); 1432 1445 $top_level_count = $top_level_query->query( $top_level_args ); 1433 1446 1434 1447 $comment_args['offset'] = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page; … … 2670 2683 * @since 3.0.0 2671 2684 */ 2672 2685 do_action( 'comment_form_after' ); 2673 } 2686 } 2687 No newline at end of file