From b5d7564f5008263dac15fa93aeef290d9a57212e Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 4 Mar 2009 22:05:49 +0000 Subject: [PATCH] Add compat for mb_substr rather than mb_strcut. fixes #9055 git-svn-id: https://develop.svn.wordpress.org/trunk@10707 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/compat.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/compat.php b/wp-includes/compat.php index b08c5654c6..0043865000 100644 --- a/wp-includes/compat.php +++ b/wp-includes/compat.php @@ -77,13 +77,13 @@ function hash_hmac($algo, $data, $key, $raw_output = false) { } endif; -if ( ! function_exists('mb_strcut') ): - function mb_strcut( $str, $start, $length=null, $encoding=null ) { - return _mb_strcut($str, $start, $length, $encoding); +if ( ! function_exists('mb_substr') ): + function mb_substr( $str, $start, $length=null, $encoding=null ) { + return _mb_substr($str, $start, $length, $encoding); } endif; -function _mb_strcut( $str, $start, $length=null, $encoding=null ) { +function _mb_substr( $str, $start, $length=null, $encoding=null ) { // the solution below, works only for utf-8, so in case of a different // charset, just use built-in substr $charset = get_option( 'blog_charset' );