- Timestamp:
- 02/17/2024 03:22:37 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r57603 r57648 404 404 } 405 405 406 $max_pages = ceil( $total_posts / (int) $posts_query->query_vars['posts_per_page'] );406 $max_pages = (int) ceil( $total_posts / (int) $posts_query->query_vars['posts_per_page'] ); 407 407 408 408 if ( $page > $max_pages && $total_posts > 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.