League table defaults to post meta columns

This commit is contained in:
Brian Miyaji
2014-03-21 19:08:46 +11:00
parent 991498f623
commit bb17e0e584

View File

@@ -30,6 +30,9 @@ if ( !function_exists( 'sportspress_league_table' ) ) {
$columns = sportspress_array_value( $r, 'columns', null );
if ( ! $columns )
$columns = get_post_meta( $id, 'sp_columns', true );
if ( ! is_array( $columns ) )
$columns = explode( ',', $columns );