Changeset 25051
- Timestamp:
- 08/18/2013 08:17:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r25046 r25051 1395 1395 */ 1396 1396 private function stream_body( $handle, $data ) { 1397 if ( function_exists( 'ini_get' ) && ( ini_get( 'mbstring.func_overload' ) & 2 ) && function_exists( 'mb_internal_encoding' ) ) { 1398 $mb_encoding = mb_internal_encoding(); 1399 mb_internal_encoding( 'ISO-8859-1' ); 1400 } 1401 1397 1402 if ( $this->max_body_length && ( strlen( $this->body ) + strlen( $data ) ) > $this->max_body_length ) 1398 1403 $data = substr( $data, 0, ( $this->max_body_length - strlen( $this->body ) ) ); … … 1403 1408 $this->body .= $data; 1404 1409 1405 return strlen( $data ); 1410 $data_length = strlen( $data ); 1411 1412 if ( isset( $mb_encoding ) ) 1413 mb_internal_encoding( $mb_encoding ); 1414 1415 return $data_length; 1406 1416 } 1407 1417
Note: See TracChangeset
for help on using the changeset viewer.