From 45b8424c0b3952798c3e09f670569970efb049b1 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Fri, 9 Dec 2016 15:46:11 +1100 Subject: [PATCH] Apply outcome color to streak --- includes/class-sp-league-table.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-sp-league-table.php b/includes/class-sp-league-table.php index 33f59fd4..c42e00f0 100644 --- a/includes/class-sp-league-table.php +++ b/includes/class-sp-league-table.php @@ -409,7 +409,8 @@ class SP_League_Table extends SP_Custom_Post{ if ( $streak['name'] ): $outcome = sp_array_value( $outcomes, $streak['name'], false ); if ( $outcome ): - $totals[ $team_id ]['streak'] = $outcome['abbreviation'] . $streak['count']; + $color = $outcome['color']; + $totals[ $team_id ]['streak'] = '' . $outcome['abbreviation'] . $streak['count'] . ''; else: $totals[ $team_id ]['streak'] = null; endif;