Make league selection mandatory for list and table

This commit is contained in:
Brian Miyaji
2014-01-03 00:31:27 +11:00
parent 8e0a29c191
commit 6321b2713f
3 changed files with 1 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ function sp_event_team_meta( $post ) {
'post_type' => 'sp_team',
'name' => 'sp_team_selector',
'class' => 'sportspress-pages',
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), 'Team' ),
'show_option_none' => '(' . sprintf( __( 'Select', 'sportspress' ) . ')', 'Team' ),
'option_none_value' => '0'
);
wp_dropdown_pages( $args );

View File

@@ -49,7 +49,6 @@ function sp_list_player_meta( $post ) {
<p class="sp-tab-select">
<?php
$args = array(
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'League', 'sportspress' ) ),
'taxonomy' => 'sp_league',
'name' => 'sp_league',
'selected' => $league_id,

View File

@@ -47,7 +47,6 @@ function sp_table_team_meta( $post, $test ) {
<p class="sp-tab-select">
<?php
$args = array(
'show_option_none' => sprintf( __( 'Select %s', 'sportspress' ), __( 'League', 'sportspress' ) ),
'taxonomy' => 'sp_league',
'name' => 'sp_league',
'selected' => $league_id,