From 9e591c41548da876870dd1738f330466a9482eef Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 28 Dec 2005 00:55:55 +0000 Subject: [PATCH] i18n trackback fix. Props thinkini. fixes #2163 git-svn-id: https://develop.svn.wordpress.org/trunk@3368 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 eaaab76dce..b34349922a 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);