diff --git a/inc/pagination.php b/inc/pagination.php index 6ed13e4..b582f73 100644 --- a/inc/pagination.php +++ b/inc/pagination.php @@ -7,19 +7,19 @@ if ( ! function_exists ( 'understrap_pagination' ) ) { - function understrap_pagination($args = [], $class = 'pagination') { + function understrap_pagination( $args = array(), $class = 'pagination' ) { if ($GLOBALS['wp_query']->max_num_pages <= 1) return; - $args = wp_parse_args( $args, [ - 'mid_size' => 2, - 'prev_next' => true, - 'prev_text' => __('«', 'understrap'), - 'next_text' => __('»', 'understrap'), - 'screen_reader_text' => __('Posts navigation', 'understrap'), - 'type' => 'array', - 'current' => max( 1, get_query_var('paged') ), - ]); + $args = wp_parse_args( $args, array( + 'mid_size' => 2, + 'prev_next' => true, + 'prev_text' => __('«', 'understrap'), + 'next_text' => __('»', 'understrap'), + 'screen_reader_text' => __('Posts navigation', 'understrap'), + 'type' => 'array', + 'current' => max( 1, get_query_var('paged') ), + ) ); $links = paginate_links($args);