Skip to content

Commit

Permalink
feat: Allow pagination object to be generated using $prefs only
Browse files Browse the repository at this point in the history
  • Loading branch information
gchtr committed Feb 27, 2024
2 parents d81f995 + 7f261c7 commit 99219a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pagination.php
Expand Up @@ -116,7 +116,7 @@ protected function init($prefs = [], $wp_query = null)
'class' => 'page-numbers prev',
];
}
if ($paged < 2) {
if ($this->current < 2) {
$this->prev = '';
}
if ($this->total === (float) 0) {
Expand Down

0 comments on commit 99219a9

Please sign in to comment.