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/Auth.php

    r52244 r52328  
    33 * Authentication provider interface
    44 *
    5  * @package Requests\Authentication
     5 * @package Requests
     6 * @subpackage Authentication
    67 */
    7 
    8 namespace WpOrg\Requests;
    9 
    10 use WpOrg\Requests\Hooks;
    118
    129/**
     
    1815 * makes it much easier for users to use your provider.
    1916 *
    20  * @see \WpOrg\Requests\Hooks
    21  *
    22  * @package Requests\Authentication
     17 * @see Requests_Hooks
     18 * @package Requests
     19 * @subpackage Authentication
    2320 */
    24 interface Auth {
     21interface Requests_Auth {
    2522    /**
    2623     * Register hooks as needed
    2724     *
    28      * This method is called in {@see \WpOrg\Requests\Requests::request()} when the user
    29      * has set an instance as the 'auth' option. Use this callback to register all the
     25     * This method is called in {@see Requests::request} when the user has set
     26     * an instance as the 'auth' option. Use this callback to register all the
    3027     * hooks you'll need.
    3128     *
    32      * @see \WpOrg\Requests\Hooks::register()
    33      * @param \WpOrg\Requests\Hooks $hooks Hook system
     29     * @see Requests_Hooks::register
     30     * @param Requests_Hooks $hooks Hook system
    3431     */
    35     public function register(Hooks $hooks);
     32    public function register(Requests_Hooks $hooks);
    3633}
Note: See TracChangeset for help on using the changeset viewer.