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
This commit is contained in:
ryan 2009-03-04 19:41:18 +00:00
parent 12bd1a3053
commit a867852888
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 ) { function wp_html_excerpt( $str, $count ) {
$str = strip_tags( $str ); $str = strip_tags( $str );
$str = mb_strcut( $str, 0, $count ); $str = mb_substr( $str, 0, $count );
// remove part of an entity at the end // remove part of an entity at the end
$str = preg_replace( '/&[^;\s]{0,6}$/', '', $str ); $str = preg_replace( '/&[^;\s]{0,6}$/', '', $str );
return $str; return $str;