Swap array shorthand `[]` in wp_parse_args call to `array()`

This commit is contained in:
William Patton 2018-07-13 00:10:59 +01:00
parent ddd8bacca8
commit efabf58b1d
1 changed files with 9 additions and 9 deletions

View File

@ -11,15 +11,15 @@ if ( ! function_exists ( 'understrap_pagination' ) ) {
if ($GLOBALS['wp_query']->max_num_pages <= 1) return;
$args = wp_parse_args( $args, [
'mid_size' => 2,
'prev_next' => true,
'prev_text' => __('&laquo;', 'understrap'),
'next_text' => __('&raquo;', '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' => __('&laquo;', 'understrap'),
'next_text' => __('&raquo;', 'understrap'),
'screen_reader_text' => __('Posts navigation', 'understrap'),
'type' => 'array',
'current' => max( 1, get_query_var('paged') ),
) );
$links = paginate_links($args);