- Timestamp:
- 06/14/2022 12:40:29 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r53482 r53498 389 389 $total_posts = $posts_query->found_posts; 390 390 391 if ( $total_posts < 1 ) {391 if ( $total_posts < 1 && $page > 1 ) { 392 392 // Out-of-bounds, run the query again without LIMIT for total count. 393 393 unset( $query_args['paged'] );
Note: See TracChangeset
for help on using the changeset viewer.