From a86785288878e0c9458a7bc8807de16d45ccfeda Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 4 Mar 2009 19:41:18 +0000 Subject: [PATCH] Use mb_substr instead of mb_strcut in wp_html_excerpt. Props demetris. fixes #9055 git-svn-id: http://svn.automattic.com/wordpress/trunk@10702 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/formatting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;