Skip to content

Commit

Permalink
Tweak pods_mb_substr
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Apr 17, 2014
1 parent c7d7ebd commit 412ebad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deprecated/deprecated.php
Expand Up @@ -22,6 +22,10 @@ function pods_mb_strlen( $string ) {
function pods_mb_substr( $string, $start, $length = null, $encoding = null ) {

if ( function_exists( 'mb_substr' ) ) {
if ( null === $encoding ) {
$encoding = mb_internal_encoding();
}

return mb_substr( $string, $start, $length, $encoding );
}

Expand Down

0 comments on commit 412ebad

Please sign in to comment.