Make WordPress Core


Ignore:
Timestamp:
06/23/2014 10:20:23 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Remove mbstring_binary_safe_strlen(). Use mbstring_binary_safe_encoding() and reset_mbstring_encoding() directly.

fixes #28162.

File:
1 edited

Legend:

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

    r28806 r28808  
    482482 */
    483483function seems_utf8($str) {
    484     $length = mbstring_binary_safe_strlen($str);
     484    mbstring_binary_safe_encoding();
     485    $length = strlen($str);
     486    reset_mbstring_encoding();
    485487    for ($i=0; $i < $length; $i++) {
    486488        $c = ord($str[$i]);
     
    706708    $unicode_length = 0;
    707709
    708     $string_length = mbstring_binary_safe_strlen( $utf8_string );
     710    mbstring_binary_safe_encoding();
     711    $string_length = strlen( $utf8_string );
     712    reset_mbstring_encoding();
     713
    709714    for ($i = 0; $i < $string_length; $i++ ) {
    710715
Note: See TracChangeset for help on using the changeset viewer.