Make WordPress Core


Ignore:
Timestamp:
03/25/2025 12:46:30 PM (3 months ago)
Author:
joemcgill
Message:

Editor: Update packages for 6.8 RC 1.

Syncs @wordpress/* packages to the 'wp-6.8' npm tag.

Props mamaduka, audrasjb.
See #62887.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/query-total.php

    r59961 r60078  
    3535
    3636    // 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 );
    3838    $end   = min( $start + $posts_per_page - 1, $max_rows );
    3939
Note: See TracChangeset for help on using the changeset viewer.