Make WordPress Core


Ignore:
Timestamp:
05/11/2021 07:40:41 PM (3 years ago)
Author:
desrosj
Message:

External Libraries: Update the Requests library to version 1.8.0.

While some of the changes in the 1.8.0 release have already been copied to WordPress Core in earlier releases (see [38727], [46258], [47902] and [49382]), this release contains additional improvements, including:

  • A significant performance fix when using cURL.
  • Improved compliance with RFC2616.

The library has also been moved under the WordPress project’s GitHub organization and can now be found at https://github.com/WordPress/Requests.

Props jrf, dd32, rmccue, justinahinon, netweb, schlessera, TimothyBJacobs, soulseekah, ozh, skithund, carlalexander, travisnorthcutt, desrosj.
Fixes #53101.

File:
1 edited

Legend:

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

    r46586 r50842  
    5454     * @param Requests_Hooks $hooks Hook system
    5555     */
    56     public function register(Requests_Hooks &$hooks) {
    57         $hooks->register('curl.before_send', array(&$this, 'curl_before_send'));
    58         $hooks->register('fsockopen.after_headers', array(&$this, 'fsockopen_header'));
     56    public function register(Requests_Hooks $hooks) {
     57        $hooks->register('curl.before_send', array($this, 'curl_before_send'));
     58        $hooks->register('fsockopen.after_headers', array($this, 'fsockopen_header'));
    5959    }
    6060
Note: See TracChangeset for help on using the changeset viewer.