Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.6/wp-includes/class-http.php

    r25052 r24896  
    13031303     */
    13041304    private function stream_body( $handle, $data ) {
    1305         if ( function_exists( 'ini_get' ) && ( ini_get( 'mbstring.func_overload' ) & 2 ) && function_exists( 'mb_internal_encoding' ) ) {
    1306             $mb_encoding = mb_internal_encoding();
    1307             mb_internal_encoding( 'ISO-8859-1' );
    1308         }
    1309 
    13101305        if ( $this->max_body_length && ( strlen( $this->body ) + strlen( $data ) ) > $this->max_body_length )
    13111306            $data = substr( $data, 0, ( $this->max_body_length - strlen( $this->body ) ) );
     
    13161311            $this->body .= $data;
    13171312
    1318         $data_length = strlen( $data );
    1319 
    1320         if ( isset( $mb_encoding ) )
    1321             mb_internal_encoding( $mb_encoding );
    1322 
    1323         return $data_length;
     1313        return strlen( $data );
    13241314    }
    13251315
Note: See TracChangeset for help on using the changeset viewer.