Fix non-alphanumeric abbreviations
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user