Changeset 57648 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles-revisions-controller.php
- 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-global-styles-revisions-controller.php
r57628 r57648 207 207 208 208 if ( $revisions_query->query_vars['posts_per_page'] > 0 ) { 209 $max_pages = ceil( $total_revisions / (int) $revisions_query->query_vars['posts_per_page'] );209 $max_pages = (int) ceil( $total_revisions / (int) $revisions_query->query_vars['posts_per_page'] ); 210 210 } else { 211 211 $max_pages = $total_revisions > 0 ? 1 : 0;
Note: See TracChangeset
for help on using the changeset viewer.