Fix #65 player list shortcode columns

This commit is contained in:
Brian Miyaji
2014-10-19 16:52:31 +11:00
parent 0811dabd28
commit 4200c540f9

View File

@@ -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;