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

@@ -418,7 +418,7 @@ if ( !function_exists( 'sp_get_post_abbreviation' ) ) {
if ( $abbreviation ):
return $abbreviation;
else:
return substr( get_the_title( $post_id ), 0, 1 );
return mb_substr( get_the_title( $post_id ), 0, 1 );
endif;
}
}