WordPress.org

Make WordPress Core

Changeset 3369


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

Use mb_strcut instead of mb_substr. fixes #2163

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-trackback.php

    r3107 r3369  
    7070    $title =  wp_specialchars( strip_tags( $title ) );
    7171    $excerpt = strip_tags($excerpt);
    72     if ( function_exists('mb_substr') ) { // For international trackbacks
    73         $excerpt = mb_substr($excerpt, 0, 252, get_settings('blog_charset')) . '...';
    74         $title = mb_substr($title, 0, 250, get_settings('blog_charset')) . '...';
     72    if ( function_exists('mb_strcut') ) { // For international trackbacks
     73        $excerpt = mb_strcut($excerpt, 0, 252, get_settings('blog_charset')) . '...';
     74        $title = mb_strcut($title, 0, 250, get_settings('blog_charset')) . '...';
    7575    } else {
    7676        $excerpt = (strlen($excerpt) > 255) ? substr($excerpt, 0, 252) . '...' : $excerpt;
Note: See TracChangeset for help on using the changeset viewer.