Skip hidden box score columns in split stats mode

This commit is contained in:
Brian Miyaji
2016-09-22 14:06:02 +10:00
parent 626625f5b6
commit c51e579de0

View File

@@ -129,6 +129,7 @@ if ( is_array( $teams ) ):
}
// Initialize labels
$selected = $labels;
$labels = array( array(), array() );
// Add positions if applicable
@@ -138,6 +139,7 @@ if ( is_array( $teams ) ):
// Get labels by section
foreach ( $columns as $column ):
if ( ! array_key_exists( $column->post_name, $selected ) ) continue;
$section = get_post_meta( $column->ID, 'sp_section', true );
if ( '' === $section ) {
$section = -1;