From ee459e936baf8936dd0a54fbdb7e7df9243ca48a Mon Sep 17 00:00:00 2001 From: IanDelMar <42134098+IanDelMar@users.noreply.github.com> Date: Mon, 19 Nov 2018 00:37:12 +0100 Subject: [PATCH] Fix indentation & space usage --- inc/pagination.php | 63 ++++++++++++++++++++++++---------------------- 1 file changed, 33 insertions(+), 30 deletions(-) diff --git a/inc/pagination.php b/inc/pagination.php index 9a6ff79e..2e9dfa5b 100644 --- a/inc/pagination.php +++ b/inc/pagination.php @@ -9,48 +9,51 @@ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } -if ( ! function_exists ( 'understrap_pagination' ) ) { +if ( ! function_exists( 'understrap_pagination' ) ) { function understrap_pagination( $args = array(), $class = 'pagination' ) { - if ($GLOBALS['wp_query']->max_num_pages <= 1) return; + if ( $GLOBALS['wp_query']->max_num_pages <= 1 ) { + return; + } - $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') ), - ) ); + $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); + $links = paginate_links( $args ); - ?> + ?> - - -