WordPress.org

Make WordPress Core

Changeset 51826


Ignore:
Timestamp:
09/20/2021 12:05:20 PM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename the $processedHeaders variable to $processed_headers in WP_Http::request().

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

Follow-up to [8620], [51823].

See #53359.

File:
1 edited

Legend:

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

    r51823 r51826  
    310310        // WP allows passing in headers as a string, weirdly.
    311311        if ( ! is_array( $parsed_args['headers'] ) ) {
    312             $processedHeaders       = WP_Http::processHeaders( $parsed_args['headers'] );
    313             $parsed_args['headers'] = $processedHeaders['headers'];
     312            $processed_headers      = WP_Http::processHeaders( $parsed_args['headers'] );
     313            $parsed_args['headers'] = $processed_headers['headers'];
    314314        }
    315315
Note: See TracChangeset for help on using the changeset viewer.