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/tests/phpunit/tests/functions.php

    r52244 r52328  
    365365    public function test_deserialize_request_utility_filtered_iterator_objects( $value ) {
    366366        $serialized = maybe_serialize( $value );
    367         if ( get_class( $value ) === 'WpOrg\Requests\Utility\FilteredIterator' ) {
     367        if ( get_class( $value ) === 'Requests_Utility_FilteredIterator' ) {
    368368            $new_value = unserialize( $serialized );
    369             $property  = ( new ReflectionClass( 'WpOrg\Requests\Utility\FilteredIterator' ) )->getProperty( 'callback' );
     369            $property  = ( new ReflectionClass( 'Requests_Utility_FilteredIterator' ) )->getProperty( 'callback' );
    370370            $property->setAccessible( true );
    371371            $callback_value = $property->getValue( $new_value );
     
    378378    public function data_serialize_deserialize_objects() {
    379379        return array(
    380             array( new WpOrg\Requests\Utility\FilteredIterator( array( 1 ), 'md5' ) ),
    381             array( new WpOrg\Requests\Utility\FilteredIterator( array( 1, 2 ), 'sha1' ) ),
     380            array( new Requests_Utility_FilteredIterator( array( 1 ), 'md5' ) ),
     381            array( new Requests_Utility_FilteredIterator( array( 1, 2 ), 'sha1' ) ),
    382382            array( new ArrayIterator( array( 1, 2, 3 ) ) ),
    383383        );
Note: See TracChangeset for help on using the changeset viewer.