Add prefixed functions for multibyte alternatives

This commit is contained in:
Brian Miyaji
2018-05-11 12:24:57 +10:00
parent ef6b1c2318
commit 7d39c2b4dd
5 changed files with 21 additions and 5 deletions

View File

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