From 0b86bb1f1729728fe16542b2a32dfa352fd9cb6f Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Mon, 22 Oct 2018 17:43:36 +1100 Subject: [PATCH] Don't reverse teams in class. Let them be home-away in admin. --- includes/class-sp-event.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/includes/class-sp-event.php b/includes/class-sp-event.php index ebc3f1a0..9e936cb9 100644 --- a/includes/class-sp-event.php +++ b/includes/class-sp-event.php @@ -49,10 +49,6 @@ class SP_Event extends SP_Custom_Post{ // Get results for all teams $data = sp_array_combine( $teams, $results, true ); - - if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) { - $data = array_reverse( $data, true ); - } if ( $admin ): return array( $columns, $usecolumns, $data ); @@ -471,10 +467,6 @@ class SP_Event extends SP_Custom_Post{ $output[] = $team_result; } } - - if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) { - $output = array_reverse( $output, true ); - } return $output; }