Fix player list including past players

This commit is contained in:
Brian Miyaji
2016-10-13 22:54:22 +11:00
parent 2c951dfb05
commit bf7e201eae

View File

@@ -97,7 +97,7 @@ class SP_Player_List extends SP_Custom_Post {
if ( $team && apply_filters( 'sportspress_has_teams', true ) ):
$args['meta_query'] = array(
array(
'key' => 'sp_team',
'key' => 'sp_current_team',
'value' => $team
),
);