--- a/wp/wp-includes/class-requests.php Tue Oct 22 16:11:46 2019 +0200
+++ b/wp/wp-includes/class-requests.php Tue Dec 15 13:49:49 2020 +0100
@@ -88,7 +88,7 @@
*
* @var string
*/
- const VERSION = '1.7';
+ const VERSION = '1.7-3470169';
/**
* Registered transport classes
@@ -187,7 +187,8 @@
// Don't search for a transport if it's already been done for these $capabilities
if (isset(self::$transport[$cap_string]) && self::$transport[$cap_string] !== null) {
- return new self::$transport[$cap_string]();
+ $class = self::$transport[$cap_string];
+ return new $class();
}
// @codeCoverageIgnoreEnd
@@ -214,7 +215,8 @@
throw new Requests_Exception('No working transports found', 'notransport', self::$transports);
}
- return new self::$transport[$cap_string]();
+ $class = self::$transport[$cap_string];
+ return new $class();
}
/**#@+
@@ -789,7 +791,7 @@
* Convert a key => value array to a 'key: value' array for headers
*
* @param array $array Dictionary of header values
- * @return array List of headers
+ * @return string[] List of headers
*/
public static function flatten($array) {
$return = array();
@@ -805,7 +807,7 @@
* @codeCoverageIgnore
* @deprecated Misspelling of {@see Requests::flatten}
* @param array $array Dictionary of header values
- * @return array List of headers
+ * @return string[] List of headers
*/
public static function flattern($array) {
return self::flatten($array);