From dfea672c4429c36140f263b943051878402f6839 Mon Sep 17 00:00:00 2001 From: savvasha Date: Sun, 30 Aug 2020 10:43:04 +0300 Subject: [PATCH] Return all events that a team participated. --- includes/class-sp-player-list.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 67f308d7..3f9a726c 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -377,18 +377,11 @@ class SP_Player_List extends SP_Secondary_Post { $team_key = 'sp_team'; if ( $team ): - switch ( $era ): - case 'current': - $team_key = 'sp_current_team'; - break; - case 'past': - $team_key = 'sp_past_team'; - break; - endswitch; $args['meta_query'][] = array( array( 'key' => $team_key, - 'value' => $team + 'value' => $team, + 'compare' => 'IN', ), ); endif;