Cut international trackbacks, fixes #1647
git-svn-id: https://develop.svn.wordpress.org/trunk@3081 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5f7471444a
commit
7318490e2c
@ -70,7 +70,10 @@ if ( !empty($tb_url) && !empty($title) && !empty($tb_url) ) {
|
||||
$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;
|
||||
|
Loading…
Reference in New Issue
Block a user