From f1e77a800a28917628a34a883a62e1b91b8337b3 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 28 Dec 2005 00:55:55 +0000 Subject: [PATCH] i18n trackback fix. Props thinkini. fixes #2163 git-svn-id: http://svn.automattic.com/wordpress/trunk@3368 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-post.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions-post.php b/wp-includes/functions-post.php index eaaab76dc..b34349922 100644 --- a/wp-includes/functions-post.php +++ b/wp-includes/functions-post.php @@ -705,7 +705,10 @@ function do_trackbacks($post_id) { $excerpt = apply_filters('the_excerpt', $post->post_excerpt); $excerpt = str_replace(']]>', ']]>', $excerpt); $excerpt = strip_tags($excerpt); - $excerpt = substr($excerpt, 0, 252) . '...'; + if ( function_exists('mb_strcut') ) // For international trackbacks + $excerpt = mb_strcut($excerpt, 0, 252, get_settings('blog_charset')) . '...'; + else + $excerpt = substr($excerpt, 0, 252) . '...'; $post_title = apply_filters('the_title', $post->post_title); $post_title = strip_tags($post_title);