mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
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. Built from https://develop.svn.wordpress.org/trunk@46258 git-svn-id: http://core.svn.wordpress.org/trunk@46070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
fbcc75a5d6
commit
2d29e22e56
@ -150,7 +150,7 @@ class Requests_Transport_fsockopen implements Requests_Transport {
|
|||||||
$options['hooks']->dispatch('fsockopen.remote_host_path', array(&$path, $url));
|
$options['hooks']->dispatch('fsockopen.remote_host_path', array(&$path, $url));
|
||||||
|
|
||||||
$request_body = '';
|
$request_body = '';
|
||||||
$out = sprintf("%s %s HTTP/%.1f\r\n", $options['type'], $path, $options['protocol_version']);
|
$out = sprintf("%s %s HTTP/%.1F\r\n", $options['type'], $path, $options['protocol_version']);
|
||||||
|
|
||||||
if ($options['type'] !== Requests::TRACE) {
|
if ($options['type'] !== Requests::TRACE) {
|
||||||
if (is_array($data)) {
|
if (is_array($data)) {
|
||||||
@ -192,7 +192,7 @@ class Requests_Transport_fsockopen implements Requests_Transport {
|
|||||||
$headers = Requests::flatten($headers);
|
$headers = Requests::flatten($headers);
|
||||||
|
|
||||||
if (!empty($headers)) {
|
if (!empty($headers)) {
|
||||||
$out .= implode($headers, "\r\n") . "\r\n";
|
$out .= implode("\r\n", $headers) . "\r\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$options['hooks']->dispatch('fsockopen.after_headers', array(&$out));
|
$options['hooks']->dispatch('fsockopen.after_headers', array(&$out));
|
||||||
|
@ -88,7 +88,7 @@ class Requests {
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.7';
|
const VERSION = '1.7-3470169';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registered transport classes
|
* Registered transport classes
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '5.3-alpha-46257';
|
$wp_version = '5.3-alpha-46258';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user