Clean up event players checklist

This commit is contained in:
Brian Miyaji
2016-02-17 19:50:13 +11:00
parent 72af5f3514
commit a4cbfafbe2
2 changed files with 0 additions and 4 deletions

View File

@@ -110,9 +110,6 @@ class SP_Meta_Box_Event_Teams {
$j = 0;
foreach ( $tabs as $slug => $tab ) {
do_action( 'sportspress_event_teams_meta_box_checklist', $post->ID, $tab['post_type'], ( 0 == $j ? 'block' : 'none' ), $team, $i, $slug );
if ( apply_filters( 'sportspress_event_teams_meta_box_default_checklist', true ) ) {
sp_post_checklist( $post->ID, $tab['post_type'], ( 0 == $j ? 'block' : 'none' ), array( 'sp_league', 'sp_season', 'sp_current_team' ), $i, $slug );
}
$j++;
}
?>

View File

@@ -28,7 +28,6 @@ class SportsPress_Lazy_Loading {
add_action( 'wp_ajax_sp-get-players', array( $this, 'get_players' ) );
add_action( 'sportspress_event_teams_meta_box_checklist', array( $this, 'checklist' ), 10, 6 );
add_filter( 'sportspress_localized_strings', array( $this, 'strings' ) );
add_filter( 'sportspress_event_teams_meta_box_default_checklist', '__return_false' );
}
/**