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/functions.php

    r28806 r28808  
    44064406
    44074407/**
    4408  * Uses a binary-safe encoding to get the length of a string in bytes if func_overload is enabled.
    4409  *
    4410  * @see mbstring_binary_safe_encoding()
    4411  *
    4412  * @since 4.0.0
    4413  *
    4414  * @param string $string The string to get the length of.
    4415  * @return int The length of the string in bytes.
    4416  */
    4417 function mbstring_binary_safe_strlen( $string ) {
    4418     mbstring_binary_safe_encoding();
    4419     $length = strlen( $string );
    4420     reset_mbstring_encoding();
    4421 
    4422     return $length;
    4423 }
    4424 
    4425 /**
    44264408 * Alternative to filter_var( $var, FILTER_VALIDATE_BOOLEAN )
    44274409 *
Note: See TracChangeset for help on using the changeset viewer.