From 236e1d4ee3c4bf4a2d70e2f8ca98441b64231ae0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 20 Mar 2022 15:43:04 +0000 Subject: [PATCH] Coding Standards: Rename the `$requestPath` variable to `$request_path` in `WP_Http_Streams::request()`. This fixes a `Variable "$requestPath" is not in valid snake_case format` WPCS warning. Follow-up to [8516], [51825], [51929], [51940], [52960]. Props azouamauriac. See #54728. Built from https://develop.svn.wordpress.org/trunk@52961 git-svn-id: http://core.svn.wordpress.org/trunk@52550 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-http-streams.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-http-streams.php b/wp-includes/class-wp-http-streams.php index 0d21365071..e1c805f4ff 100644 --- a/wp-includes/class-wp-http-streams.php +++ b/wp-includes/class-wp-http-streams.php @@ -206,12 +206,12 @@ class WP_Http_Streams { stream_set_timeout( $handle, $timeout, $utimeout ); if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { // Some proxies require full URL in this field. - $requestPath = $url; + $request_path = $url; } else { - $requestPath = $parsed_url['path'] . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ); + $request_path = $parsed_url['path'] . ( isset( $parsed_url['query'] ) ? '?' . $parsed_url['query'] : '' ); } - $strHeaders = strtoupper( $parsed_args['method'] ) . ' ' . $requestPath . ' HTTP/' . $parsed_args['httpversion'] . "\r\n"; + $strHeaders = strtoupper( $parsed_args['method'] ) . ' ' . $request_path . ' HTTP/' . $parsed_args['httpversion'] . "\r\n"; $include_port_in_host_header = ( ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) diff --git a/wp-includes/version.php b/wp-includes/version.php index 449f52adda..e1892d858d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52960'; +$wp_version = '6.0-alpha-52961'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.