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

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