Make WordPress Core


Ignore:
Timestamp:
04/05/2023 01:10:53 PM (2 years ago)
Author:
SergeyBiryukov
Message:

External Libraries: Update the Requests library to version 2.0.6.

This is a maintenance release with minor changes:

  • Fix typo in deprecation notice.
  • Minor internal improvements for passing the correct type to function calls.
  • Confirmed compatibility with PHP 8.2. No changes were needed, so Requests 2.0.1 and higher can be considered compatible with PHP 8.2.
  • Various documentation improvements and other general housekeeping.

References:

Follow-up to [54997], [55007], [55046], [55225], [55296].

Props jrf, costdev.
Fixes #58079.

File:
1 edited

Legend:

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

    r54997 r55629  
    149149     * @var string
    150150     */
    151     const VERSION = '2.0.5';
     151    const VERSION = '2.0.6';
    152152
    153153    /**
     
    643643     * Set the default values
    644644     *
     645     * The $options parameter is updated with the results.
     646     *
    645647     * @param string $url URL to request
    646648     * @param array $headers Extra headers to send with the request
     
    648650     * @param string $type HTTP request type
    649651     * @param array $options Options for the request
    650      * @return void $options is updated with the results
     652     * @return void
    651653     *
    652654     * @throws \WpOrg\Requests\Exception When the $url is not an http(s) URL.
     
    825827     * while still executing a multiple request.
    826828     *
     829     * `$response` is either set to a \WpOrg\Requests\Response instance, or a \WpOrg\Requests\Exception object
     830     *
    827831     * @param string $response Full response text including headers and body (will be overwritten with Response instance)
    828832     * @param array $request Request data as passed into {@see \WpOrg\Requests\Requests::request_multiple()}
    829      * @return void `$response` is either set to a \WpOrg\Requests\Response instance, or a \WpOrg\Requests\Exception object
     833     * @return void
    830834     */
    831835    public static function parse_multiple(&$response, $request) {
Note: See TracChangeset for help on using the changeset viewer.