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
phasdev committed Dec 6, 2023
1 parent 5a20db0 commit 2834fd4
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 ($current < 2) {

Check failure on line 119 in src/Pagination.php

View workflow job for this annotation

GitHub Actions / PHP static analysis

Variable $current might not be defined.
$this->prev = '';
}
if ($this->total === (float) 0) {
Expand Down

0 comments on commit 2834fd4

Please sign in to comment.