Plugin Updates

This commit is contained in:
Tony Volpe
2024-04-02 20:23:21 +00:00
parent 96800520e8
commit 94170ec2c4
1514 changed files with 133309 additions and 105985 deletions

View File

@@ -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;
}