Skip to content

Commit

Permalink
Coding Standards: Rename the $processedHeaders variable to `$proces…
Browse files Browse the repository at this point in the history
…sed_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.

git-svn-id: https://develop.svn.wordpress.org/trunk@51826 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Sep 20, 2021
1 parent a640860 commit 8873b17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/class-http.php
Expand Up @@ -309,8 +309,8 @@ public function request( $url, $args = array() ) {

// WP allows passing in headers as a string, weirdly.
if ( ! is_array( $parsed_args['headers'] ) ) {
$processedHeaders = WP_Http::processHeaders( $parsed_args['headers'] );
$parsed_args['headers'] = $processedHeaders['headers'];
$processed_headers = WP_Http::processHeaders( $parsed_args['headers'] );
$parsed_args['headers'] = $processed_headers['headers'];
}

// Setup arguments.
Expand Down

0 comments on commit 8873b17

Please sign in to comment.