diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:57:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:57:30 +0000 |
commit | fa9a33d818470a5796f0ff8797f98b510ed8de18 (patch) | |
tree | bde6a1eede376f9b5df5898ce812330152984d8e /wp-includes/class-wp-walker.php | |
parent | Releasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff) | |
download | wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip |
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/class-wp-walker.php')
-rw-r--r-- | wp-includes/class-wp-walker.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index d8c00a3..e44907e 100644 --- a/wp-includes/class-wp-walker.php +++ b/wp-includes/class-wp-walker.php @@ -310,7 +310,7 @@ class Walker { $start = ( (int) $page_num - 1 ) * (int) $per_page; $end = $start + $per_page; if ( -1 == $max_depth ) { - $this->max_pages = ceil( $total_top / $per_page ); + $this->max_pages = (int) ceil( $total_top / $per_page ); } } @@ -354,7 +354,7 @@ class Walker { $total_top = count( $top_level_elements ); if ( $paging ) { - $this->max_pages = ceil( $total_top / $per_page ); + $this->max_pages = (int) ceil( $total_top / $per_page ); } else { $end = $total_top; } |