Skip to content

Commit

Permalink
Display current team in player list
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmiyaji committed Mar 25, 2018
1 parent 6f00d9e commit 7cc4ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/player-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
$tbody .= '<td class="data-name' . $name_class . '" data-label="'.$labels['name'].'">' . $name . '</td>';

if ( array_key_exists( 'team', $labels ) ):
$team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_team', true ) );
$team = sp_array_value( $row, 'team', get_post_meta( $id, 'sp_current_team', true ) );
$team_name = sp_get_team_name( $team, $abbreviate_teams );
if ( $link_teams && false !== get_post_status( $team ) ):
$team_name = '<a href="' . get_post_permalink( $team ) . '">' . $team_name . '</a>';
Expand Down

0 comments on commit 7cc4ec1

Please sign in to comment.