- Timestamp:
- 10/21/2025 03:31:55 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r60987 r61002 324 324 325 325 if ( $total_comments < 1 ) { 326 // Out-of-bounds, run the query again without LIMIT fortotal count.326 // Out-of-bounds, run the query without pagination/offset to get the total count. 327 327 unset( $prepared_args['number'], $prepared_args['offset'] ); 328 328 329 $query = new WP_Comment_Query(); 330 $prepared_args['count'] = true; 331 $prepared_args['orderby'] = 'none'; 329 $query = new WP_Comment_Query(); 330 $prepared_args['count'] = true; 331 $prepared_args['orderby'] = 'none'; 332 $prepared_args['update_comment_meta_cache'] = false; 332 333 333 334 $total_comments = $query->query( $prepared_args );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)