mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Coding Standards: Rename the $arrHeaders
variable to $processed_headers
in WP_Http_Streams::request()
.
This fixes a `Variable "$arrHeaders" is not in valid snake_case format` WPCS warning. Follow-up to [8516], [51826]. See #53359. Built from https://develop.svn.wordpress.org/trunk@51929 git-svn-id: http://core.svn.wordpress.org/trunk@51522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50aa2df391
commit
f8f74e7aa5
@ -316,14 +316,14 @@ class WP_Http_Streams {
|
||||
|
||||
fclose( $handle );
|
||||
|
||||
$arrHeaders = WP_Http::processHeaders( $process['headers'], $url );
|
||||
$processed_headers = WP_Http::processHeaders( $process['headers'], $url );
|
||||
|
||||
$response = array(
|
||||
'headers' => $arrHeaders['headers'],
|
||||
'headers' => $processed_headers['headers'],
|
||||
// Not yet processed.
|
||||
'body' => null,
|
||||
'response' => $arrHeaders['response'],
|
||||
'cookies' => $arrHeaders['cookies'],
|
||||
'response' => $processed_headers['response'],
|
||||
'cookies' => $processed_headers['cookies'],
|
||||
'filename' => $parsed_args['filename'],
|
||||
);
|
||||
|
||||
@ -334,13 +334,13 @@ class WP_Http_Streams {
|
||||
}
|
||||
|
||||
// If the body was chunk encoded, then decode it.
|
||||
if ( ! empty( $process['body'] ) && isset( $arrHeaders['headers']['transfer-encoding'] )
|
||||
&& 'chunked' === $arrHeaders['headers']['transfer-encoding']
|
||||
if ( ! empty( $process['body'] ) && isset( $processed_headers['headers']['transfer-encoding'] )
|
||||
&& 'chunked' === $processed_headers['headers']['transfer-encoding']
|
||||
) {
|
||||
$process['body'] = WP_Http::chunkTransferDecode( $process['body'] );
|
||||
}
|
||||
|
||||
if ( true === $parsed_args['decompress'] && true === WP_Http_Encoding::should_decode( $arrHeaders['headers'] ) ) {
|
||||
if ( true === $parsed_args['decompress'] && true === WP_Http_Encoding::should_decode( $processed_headers['headers'] ) ) {
|
||||
$process['body'] = WP_Http_Encoding::decompress( $process['body'] );
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.9-alpha-51928';
|
||||
$wp_version = '5.9-alpha-51929';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user