src/Potter/Utils/Paginator.php
private function setPages($_pages)
    {
        if (empty($_pages)):
            $_pages = $this->wp_query->max_num_pages;
        endif;

        if (!$_pages):
            $this->pages = 1;
        else:
            $this->pages = $_pages;
        endif;
    }
private function setPages($_pages)
    {
        if (empty($_pages)):
            $_pages = $this->wp_query->max_num_pages;
        endif;

        if (!$_pages):
            $this->pages = 1;
        else:
            $this->pages = $_pages;
        endif;
    }
@param $_pages

@return void