From ead9ed79382a9bdda4a1be0bc5f41e6d2b493237 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@10707 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 b08c5654c..004386500 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' );