Merge pull request #275 from kadimi/patch-11

Apply "Reverse Teams" to the Box Score metabox
This commit is contained in:
Brian Miyaji
2018-07-09 16:00:21 +10:00
committed by GitHub

View File

@@ -89,6 +89,10 @@ class SP_Event extends SP_Custom_Post{
public function performance( $admin = false ) {
$teams = get_post_meta( $this->ID, 'sp_team', false );
if ( 'yes' === get_option( 'sportspress_event_reverse_teams', 'no' ) ) {
$teams = array_reverse( $teams, true );
}
$performance = (array)get_post_meta( $this->ID, 'sp_players', true );
$args = array(