Skip to content

Commit

Permalink
Cut international trackbacks, fixes #1647
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@3081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
matt committed Nov 14, 2005
1 parent 886de06 commit f3c4d80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wp-trackback.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ function trackback_response($error = 0, $error_message = '') {
$title = wp_specialchars( strip_tags( $title ) );
$title = (strlen($title) > 250) ? substr($title, 0, 250) . '...' : $title;
$excerpt = strip_tags($excerpt);
$excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252) . '...' : $excerpt;
if ( function_exists('mb_strcut') ) // For international trackbacks
$excerpt = mb_strcut($excerpt, 0, 252, get_settings('blog_charset')) . '...';
else
$excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252) . '...' : $excerpt;

$comment_post_ID = $tb_id;
$comment_author = $blog_name;
Expand Down

0 comments on commit f3c4d80

Please sign in to comment.