Skip to content

Commit

Permalink
Plugin update
Browse files Browse the repository at this point in the history
  • Loading branch information
FalkoJoseph committed Dec 18, 2020
1 parent 94513f2 commit 7543d7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/class-wp-sweepbright-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,9 @@ public static function list($params)
]);

// Count totals
if (empty($params['page'])) {
$params['page'] = 1;
}
$max_per_page = WP_SweepBright_Helpers::settings_form()['max_per_page'];
$total_posts = count($results['estates']);
$total_pages = ceil($total_posts / $max_per_page);
Expand Down

0 comments on commit 7543d7e

Please sign in to comment.