diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 44c77c8243..f32bf9302c 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2251,7 +2251,7 @@ function wp_sprintf_l($pattern, $args) { */ function wp_html_excerpt( $str, $count ) { $str = strip_tags( $str ); - $str = mb_strcut( $str, 0, $count ); + $str = mb_substr( $str, 0, $count ); // remove part of an entity at the end $str = preg_replace( '/&[^;\s]{0,6}$/', '', $str ); return $str;