- 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-search-controller.php
r56586 r57648 153 153 $page = (int) $request['page']; 154 154 $per_page = (int) $request['per_page']; 155 $max_pages = ceil( $total / $per_page );155 $max_pages = (int) ceil( $total / $per_page ); 156 156 157 157 if ( $page > $max_pages && $total > 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.