Make WordPress Core


Ignore:
Timestamp:
05/11/2021 07:40:41 PM (4 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/IRI.php

    r46586 r50842  
    6868     * Scheme
    6969     *
     70     * @var string|null
     71     */
     72    protected $scheme = null;
     73
     74    /**
     75     * User Information
     76     *
     77     * @var string|null
     78     */
     79    protected $iuserinfo = null;
     80
     81    /**
     82     * ihost
     83     *
     84     * @var string|null
     85     */
     86    protected $ihost = null;
     87
     88    /**
     89     * Port
     90     *
     91     * @var string|null
     92     */
     93    protected $port = null;
     94
     95    /**
     96     * ipath
     97     *
    7098     * @var string
    7199     */
    72     protected $scheme = null;
    73 
    74     /**
    75      * User Information
    76      *
    77      * @var string
    78      */
    79     protected $iuserinfo = null;
    80 
    81     /**
    82      * ihost
    83      *
    84      * @var string
    85      */
    86     protected $ihost = null;
    87 
    88     /**
    89      * Port
    90      *
    91      * @var string
    92      */
    93     protected $port = null;
    94 
    95     /**
    96      * ipath
    97      *
    98      * @var string
    99      */
    100100    protected $ipath = '';
    101101
     
    103103     * iquery
    104104     *
    105      * @var string
     105     * @var string|null
    106106     */
    107107    protected $iquery = null;
    108108
    109109    /**
    110      * ifragment
     110     * ifragment|null
    111111     *
    112112     * @var string
     
    119119     * Each key is the scheme, each value is an array with each key as the IRI
    120120     * part and value as the default value for that part.
     121     *
     122     * @var array
    121123     */
    122124    protected $normalization = array(
     
    250252     * Returns false if $base is not absolute, otherwise an IRI.
    251253     *
    252      * @param IRI|string $base (Absolute) Base IRI
    253      * @param IRI|string $relative Relative IRI
    254      * @return IRI|false
     254     * @param Requests_IRI|string $base (Absolute) Base IRI
     255     * @param Requests_IRI|string $relative Relative IRI
     256     * @return Requests_IRI|false
    255257     */
    256258    public static function absolutize($base, $relative) {
     
    420422    protected function replace_invalid_with_pct_encoding($string, $extra_chars, $iprivate = false) {
    421423        // Normalize as many pct-encoded sections as possible
    422         $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array(&$this, 'remove_iunreserved_percent_encoded'), $string);
     424        $string = preg_replace_callback('/(?:%[A-Fa-f0-9]{2})+/', array($this, 'remove_iunreserved_percent_encoded'), $string);
    423425
    424426        // Replace invalid percent characters
     
    10111013     * Get the complete IRI
    10121014     *
    1013      * @return string
     1015     * @return string|false
    10141016     */
    10151017    protected function get_iri() {
     
    10481050     * Get the complete iauthority
    10491051     *
    1050      * @return string
     1052     * @return string|null
    10511053     */
    10521054    protected function get_iauthority() {
Note: See TracChangeset for help on using the changeset viewer.