Ticket #52484: 52484.diff
File 52484.diff, 719 bytes (added by , 4 years ago) |
---|
-
src/wp-includes/class-http.php
400 400 // Add the original object to the array. 401 401 $response['http_response'] = $http_response; 402 402 } catch ( Requests_Exception $e ) { 403 $response = new WP_Error( 'http_request_failed', $e->getMessage() ); 403 $order = array_diff( mb_detect_order(), [ 'UTF-8' ] ); 404 $order[] = 'UTF-8'; 405 $response = new WP_Error( 'http_request_failed', 406 mb_convert_encoding( $e->getMessage(), 'UTF-8', mb_detect_encoding( $e->getMessage(), $order, true ) ) ); 404 407 } 405 408 406 409 reset_mbstring_encoding();