Make league selection mandatory for list and table
This commit is contained in:
@@ -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 );
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user