WordPress.org

Make WordPress Core

Changeset 3368


Ignore:
Timestamp:
12/28/2005 12:55:55 AM (14 years ago)
Author:
ryan
Message:

i18n trackback fix. Props thinkini. fixes #2163

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r3358 r3368  
    706706    $excerpt = str_replace(']]>', ']]>', $excerpt);
    707707    $excerpt = strip_tags($excerpt);
    708     $excerpt = substr($excerpt, 0, 252) . '...';
     708    if ( function_exists('mb_strcut') ) // For international trackbacks
     709        $excerpt = mb_strcut($excerpt, 0, 252, get_settings('blog_charset')) . '...';
     710    else
     711        $excerpt = substr($excerpt, 0, 252) . '...';
    709712
    710713    $post_title = apply_filters('the_title', $post->post_title);
Note: See TracChangeset for help on using the changeset viewer.