Skip hidden box score columns in split stats mode
This commit is contained in:
@@ -129,6 +129,7 @@ if ( is_array( $teams ) ):
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Initialize labels
|
// Initialize labels
|
||||||
|
$selected = $labels;
|
||||||
$labels = array( array(), array() );
|
$labels = array( array(), array() );
|
||||||
|
|
||||||
// Add positions if applicable
|
// Add positions if applicable
|
||||||
@@ -138,6 +139,7 @@ if ( is_array( $teams ) ):
|
|||||||
|
|
||||||
// Get labels by section
|
// Get labels by section
|
||||||
foreach ( $columns as $column ):
|
foreach ( $columns as $column ):
|
||||||
|
if ( ! array_key_exists( $column->post_name, $selected ) ) continue;
|
||||||
$section = get_post_meta( $column->ID, 'sp_section', true );
|
$section = get_post_meta( $column->ID, 'sp_section', true );
|
||||||
if ( '' === $section ) {
|
if ( '' === $section ) {
|
||||||
$section = -1;
|
$section = -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user