Make WordPress Core

Changeset 46258


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.

Location:
trunk/src/wp-includes
Files:
2 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
  • trunk/src/wp-includes/class-requests.php

    r38727 r46258  
    8989         * @var string
    9090         */
    91         const VERSION = '1.7';
     91        const VERSION = '1.7-3470169';
    9292
    9393        /**
Note: See TracChangeset for help on using the changeset viewer.