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

@@ -296,7 +296,7 @@ function sp_team_abbreviation( $post = 0, $forced = false ) {
if ( $abbreviation ) {
return $abbreviation;
} else {
return $forced ? mb_substr( mb_strtoupper( sp_team_short_name( $post ) ), 0, 3 ) : sp_team_short_name( $post );
return $forced ? sp_substr( sp_strtoupper( sp_team_short_name( $post ) ), 0, 3 ) : sp_team_short_name( $post );
}
}