Swap shorthand array `[]` to `array()` in pagination function definition
This commit is contained in:
parent
dee0292777
commit
ddd8bacca8
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
if ( ! function_exists ( 'understrap_pagination' ) ) {
|
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;
|
if ($GLOBALS['wp_query']->max_num_pages <= 1) return;
|
||||||
|
|
||||||
|
|
Reference in New Issue