diff --git a/src/Pagi.php b/src/Pagi.php index 2ce65ba..1226a8f 100644 --- a/src/Pagi.php +++ b/src/Pagi.php @@ -54,7 +54,7 @@ protected function prepare() } $this->perPage = $this->query->get('posts_per_page', 1); - $this->currentPage = max(1, absint(get_query_var('paged'))); + $this->currentPage = max(1, absint($this->query->get('paged'))); } /**