Changeset 36041 for branches/4.4/src/wp-includes/comment-template.php
- Timestamp:
- 12/21/2015 03:10:45 AM (9 years ago)
- Location:
- branches/4.4
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.4
-
branches/4.4/src/wp-includes/comment-template.php
r35934 r36041 1314 1314 // If fetching the first page of 'newest', we need a top-level comment count. 1315 1315 $top_level_query = new WP_Comment_Query(); 1316 $top_level_ count = $top_level_query->query(array(1316 $top_level_args = array( 1317 1317 'count' => true, 1318 1318 'orderby' => false, 1319 1319 'post_id' => $post->ID, 1320 1320 'parent' => 0, 1321 ) ); 1321 'status' => 'approve', 1322 ); 1323 1324 if ( isset( $comment_args['include_unapproved'] ) ) { 1325 $top_level_args['include_unapproved'] = $comment_args['include_unapproved']; 1326 } 1327 1328 $top_level_count = $top_level_query->query( $top_level_args ); 1322 1329 1323 1330 $comment_args['offset'] = ( ceil( $top_level_count / $per_page ) - 1 ) * $per_page;
Note: See TracChangeset
for help on using the changeset viewer.