Fix #65 player list shortcode columns
This commit is contained in:
@@ -34,6 +34,10 @@ extract( $defaults, EXTR_SKIP );
|
|||||||
if ( isset( $performance ) )
|
if ( isset( $performance ) )
|
||||||
$columns = $performance;
|
$columns = $performance;
|
||||||
|
|
||||||
|
// Explode into array
|
||||||
|
if ( ! is_array( $columns ) )
|
||||||
|
$columns = explode( ',', $columns );
|
||||||
|
|
||||||
$list = new SP_Player_List( $id );
|
$list = new SP_Player_List( $id );
|
||||||
if ( isset( $columns ) && null !== $columns ):
|
if ( isset( $columns ) && null !== $columns ):
|
||||||
$list->columns = $columns;
|
$list->columns = $columns;
|
||||||
|
|||||||
Reference in New Issue
Block a user