Make WordPress Core

Changeset 52963


Ignore:
Timestamp:
03/20/2022 03:50:40 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Rename the $headerValue variable to $header_value in WP_Http_Streams::request().

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

Follow-up to [8516], [51825], [51929], [51940], [52960], [52961], [52962].

Props azouamauriac.
See #54728.

File:
1 edited

Legend:

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

    r52962 r52963  
    231231
    232232        if ( is_array( $parsed_args['headers'] ) ) {
    233             foreach ( (array) $parsed_args['headers'] as $header => $headerValue ) {
    234                 $headers .= $header . ': ' . $headerValue . "\r\n";
     233            foreach ( (array) $parsed_args['headers'] as $header => $header_value ) {
     234                $headers .= $header . ': ' . $header_value . "\r\n";
    235235            }
    236236        } else {
Note: See TracChangeset for help on using the changeset viewer.