Fix non-alphanumeric abbreviations

This commit is contained in:
Brian Miyaji
2018-05-04 09:42:44 +10:00
parent d7c0899d38
commit e71f3e3fef
5 changed files with 5 additions and 5 deletions

View File

@@ -505,7 +505,7 @@ class SP_Player extends SP_Custom_Post {
if ( $outcomes ):
$outcome = reset( $outcomes );
$abbreviation = sp_get_abbreviation( $outcome->ID );
if ( empty( $abbreviation ) ) $abbreviation = strtoupper( substr( $outcome->post_title, 0, 1 ) );
if ( empty( $abbreviation ) ) $abbreviation = mb_strtoupper( mb_substr( $outcome->post_title, 0, 1 ) );
$totals['streak'] = $abbreviation . $streak['count'];
endif;