Make WordPress Core

Changeset 60191


Ignore:
Timestamp:
04/26/2025 11:16:26 PM (8 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use self:: for static member reference in WP_Http.

This resolves a PHPCS error:

Squiz.Classes.SelfMemberReference.NotUsed - Must use "self::" for local static member reference

Follow-up to [20767], [37428], [38164].

Props dilipbheda.
Fixes #63346.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http.php

    r59688 r60191  
    330330        // WP allows passing in headers as a string, weirdly.
    331331        if ( ! is_array( $parsed_args['headers'] ) ) {
    332             $processed_headers      = WP_Http::processHeaders( $parsed_args['headers'] );
     332            $processed_headers      = self::processHeaders( $parsed_args['headers'] );
    333333            $parsed_args['headers'] = $processed_headers['headers'];
    334334        }
     
    369369        // If we've got cookies, use and convert them to WpOrg\Requests\Cookie.
    370370        if ( ! empty( $parsed_args['cookies'] ) ) {
    371             $options['cookies'] = WP_Http::normalize_cookies( $parsed_args['cookies'] );
     371            $options['cookies'] = self::normalize_cookies( $parsed_args['cookies'] );
    372372        }
    373373
     
    10771077        }
    10781078
    1079         $redirect_location = WP_Http::make_absolute_url( $redirect_location, $url );
     1079        $redirect_location = self::make_absolute_url( $redirect_location, $url );
    10801080
    10811081        // POST requests should not POST to a redirected location.
Note: See TracChangeset for help on using the changeset viewer.