diff --git a/CHANGELOG.MD b/CHANGELOG.MD index a9bc7202..379719cd 100644 --- a/CHANGELOG.MD +++ b/CHANGELOG.MD @@ -7,10 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] -### Changed +### Changed - TMS-564: Image metadata formatting. - TMS-561: Adjust sitemap button styles #311 +- TMS-567: Use mb_substr for special character support #312 ## [1.30.2] - 2021-12-14 @@ -20,7 +21,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [1.30.1] - 2021-12-13 -### Changed +### Changed - fix/event-lang: Add language param to API queries #309 - TMS-421: Fixes for overriding partials in child themes diff --git a/lib/Traits/EnrichPost.php b/lib/Traits/EnrichPost.php index 07fe0af6..c65ec364 100644 --- a/lib/Traits/EnrichPost.php +++ b/lib/Traits/EnrichPost.php @@ -42,7 +42,7 @@ public static function enrich_post( $post->excerpt = get_the_excerpt( $post ); if ( ! has_excerpt( $post->ID ) && strlen( $post->excerpt ) > $excerpt_length ) { - $post->excerpt = trim( substr( $post->excerpt, 0, $excerpt_length ) ); + $post->excerpt = trim( mb_substr( $post->excerpt, 0, $excerpt_length ) ); } if ( $display_categories ) {