WordPress.org

Make WordPress Core

Changeset 10702


Ignore:
Timestamp:
03/04/09 19:41:18 (5 years ago)
Author:
ryan
Message:

Use mb_substr instead of mb_strcut in wp_html_excerpt. Props demetris. fixes #9055

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r10606 r10702  
    22522252function wp_html_excerpt( $str, $count ) { 
    22532253    $str = strip_tags( $str ); 
    2254     $str = mb_strcut( $str, 0, $count ); 
     2254    $str = mb_substr( $str, 0, $count ); 
    22552255    // remove part of an entity at the end 
    22562256    $str = preg_replace( '/&[^;\s]{0,6}$/', '', $str ); 
Note: See TracChangeset for help on using the changeset viewer.