Make WordPress Core


Ignore:
Timestamp:
12/06/2021 09:29:00 PM (2 years ago)
Author:
SergeyBiryukov
Message:

HTTP API: Revert changeset [52244].

Reverting Requests 2.0.0 changes and moving to WordPress 6.0 cycle. Why? The namespace and file case renaming revealed 2 issues in Core's upgrader process.

See https://core.trac.wordpress.org/ticket/54504#comment:22 for more information.

Follow-up to [52327].

See #54562, #54504.

File:
1 edited

Legend:

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

    r52244 r52328  
    33 * Proxy connection interface
    44 *
    5  * @package Requests\Proxy
    6  * @since   1.6
     5 * @package Requests
     6 * @subpackage Proxy
     7 * @since 1.6
    78 */
    8 
    9 namespace WpOrg\Requests;
    10 
    11 use WpOrg\Requests\Hooks;
    129
    1310/**
     
    1916 * makes it much easier for users to use your provider.
    2017 *
    21  * @see \WpOrg\Requests\Hooks
    22  *
    23  * @package Requests\Proxy
    24  * @since   1.6
     18 * @see Requests_Hooks
     19 * @package Requests
     20 * @subpackage Proxy
     21 * @since 1.6
    2522 */
    26 interface Proxy {
     23interface Requests_Proxy {
    2724    /**
    2825     * Register hooks as needed
    2926     *
    30      * This method is called in {@see \WpOrg\Requests\Requests::request()} when the user
    31      * has set an instance as the 'auth' option. Use this callback to register all the
     27     * This method is called in {@see Requests::request} when the user has set
     28     * an instance as the 'auth' option. Use this callback to register all the
    3229     * hooks you'll need.
    3330     *
    34      * @see \WpOrg\Requests\Hooks::register()
    35      * @param \WpOrg\Requests\Hooks $hooks Hook system
     31     * @see Requests_Hooks::register
     32     * @param Requests_Hooks $hooks Hook system
    3633     */
    37     public function register(Hooks $hooks);
     34    public function register(Requests_Hooks $hooks);
    3835}
Note: See TracChangeset for help on using the changeset viewer.