WordPress.org

Make WordPress Core

Changeset 10707


Ignore:
Timestamp:
03/04/2009 10:05:49 PM (9 years ago)
Author:
ryan
Message:

Add compat for mb_substr rather than mb_strcut. fixes #9055

File:
1 edited

Legend:

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

    r10543 r10707  
    7878endif;
    7979
    80 if ( ! function_exists('mb_strcut') ):
    81     function mb_strcut( $str, $start, $length=null, $encoding=null ) {
    82         return _mb_strcut($str, $start, $length, $encoding);
     80if ( ! function_exists('mb_substr') ):
     81    function mb_substr( $str, $start, $length=null, $encoding=null ) {
     82        return _mb_substr($str, $start, $length, $encoding);
    8383    }
    8484endif;
    8585
    86 function _mb_strcut( $str, $start, $length=null, $encoding=null ) {
     86function _mb_substr( $str, $start, $length=null, $encoding=null ) {
    8787    // the solution below, works only for utf-8, so in case of a different
    8888    // charset, just use built-in substr
Note: See TracChangeset for help on using the changeset viewer.