From d5b19764a73885a80c375ebdf05ba39ac131aab0 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 24 Apr 2018 08:35:28 +1000 Subject: [PATCH] Use abbreviation in match title if available --- includes/admin/post-types/class-sp-admin-cpt-event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/admin/post-types/class-sp-admin-cpt-event.php b/includes/admin/post-types/class-sp-admin-cpt-event.php index 173e47c8..6c85a845 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-event.php +++ b/includes/admin/post-types/class-sp-admin-cpt-event.php @@ -97,7 +97,7 @@ class SP_Admin_CPT_Event extends SP_Admin_CPT { while ( is_array( $team ) ) { $team = array_shift( array_filter( $team ) ); } - if ( $team > 0 ) $team_names[] = get_the_title( $team ); + if ( $team > 0 ) $team_names[] = sp_get_short_name( $team ); endforeach; $team_names = array_unique( $team_names );