Make WordPress Core


Ignore:
Timestamp:
09/19/2021 04:57:46 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename the $arrURL variable to $parsed_url in WP_Http::request().

This fixes a Variable "$arrURL" is not in valid snake_case format WPCS warning.

Follow-up to [10509], [45667].

See #53359.

File:
1 edited

Legend:

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

    r51801 r51823  
    270270        }
    271271
    272         $arrURL = parse_url( $url );
    273 
    274         if ( empty( $url ) || empty( $arrURL['scheme'] ) ) {
     272        $parsed_url = parse_url( $url );
     273
     274        if ( empty( $url ) || empty( $parsed_url['scheme'] ) ) {
    275275            $response = new WP_Error( 'http_request_failed', __( 'A valid URL was not provided.' ) );
    276276            /** This action is documented in wp-includes/class-http.php */
Note: See TracChangeset for help on using the changeset viewer.