Fix non-alphanumeric abbreviations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user