Changeset 60078 for trunk/src/wp-includes/blocks/query-total.php
- Timestamp:
- 03/25/2025 12:46:30 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query-total.php
r59961 r60078 35 35 36 36 // Calculate the range of posts being displayed. 37 $start = ( $current_page - 1 ) * $posts_per_page + 1;37 $start = ( 0 === $max_rows ) ? 0 : ( ( $current_page - 1 ) * $posts_per_page + 1 ); 38 38 $end = min( $start + $posts_per_page - 1, $max_rows ); 39 39
Note: See TracChangeset
for help on using the changeset viewer.