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

@@ -323,7 +323,7 @@ class SP_Team extends SP_Custom_Post {
$outcome = reset( $outcomes );
$abbreviation = get_post_meta( $outcome->ID, 'sp_abbreviation', true );
if ( ! $abbreviation )
$abbreviation = mb_substr( $outcome->post_title, 0, 1 );
$abbreviation = sp_substr( $outcome->post_title, 0, 1 );
$totals['streak'] = $abbreviation . $streak['count'];
endif;