Use mb_substr instead of mb_strcut in wp_html_excerpt. Props demetris. fixes #9055

git-svn-id: https://develop.svn.wordpress.org/trunk@10702 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-03-04 19:41:18 +00:00
parent e6f9b2ae63
commit 8e9edf3e5a
1 changed files with 1 additions and 1 deletions

View File

@ -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;