Make WordPress Core


Ignore:
Timestamp:
09/23/2019 06:11:01 PM (7 years ago)
Author:
desrosj
Message:

External Libraries: Fix PHP 7.4 compatibility issues in the Requests library.

See: https://github.com/rmccue/Requests/compare/v1.7.0...3470169

Props jrf, jorbin, desrosj.
See #47746.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/Requests/Transport/fsockopen.php

    r38727 r46258  
    151151
    152152                $request_body = '';
    153                 $out = sprintf("%s %s HTTP/%.1f\r\n", $options['type'], $path, $options['protocol_version']);
     153                $out = sprintf("%s %s HTTP/%.1F\r\n", $options['type'], $path, $options['protocol_version']);
    154154
    155155                if ($options['type'] !== Requests::TRACE) {
     
    193193
    194194                if (!empty($headers)) {
    195                         $out .= implode($headers, "\r\n") . "\r\n";
     195                        $out .= implode("\r\n", $headers) . "\r\n";
    196196                }
    197197
Note: See TracChangeset for help on using the changeset viewer.