Skip to content

Commit

Permalink
Merge pull request #1782 from timber/1758_pagination_defafult
Browse files Browse the repository at this point in the history
Default to an empty array for get_pagination
  • Loading branch information
jarednova committed Sep 12, 2018
2 parents 112e0b9 + 87bd475 commit 685bd26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __construct( $prefs = array(), $wp_query = null ) {
* @param array $prefs
* @return array mixed
*/
public static function get_pagination( $prefs ) {
public static function get_pagination( $prefs = array() ) {
$pagination = new self($prefs);
$pagination = get_object_vars($pagination);
return $pagination;
Expand Down

0 comments on commit 685bd26

Please sign in to comment.