Coding Standards: Rename the $arrURL variable to $parsed_url in WP_Http::request().

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

Follow-up to [10509], [45667].

See #53359.

git-svn-id: https://develop.svn.wordpress.org/trunk@51823 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2021-09-19 16:57:46 +00:00
parent f386f6f5ed
commit be12fd20ef

View File

@ -269,9 +269,9 @@ class WP_Http {
}
}
$arrURL = parse_url( $url );
$parsed_url = parse_url( $url );
if ( empty( $url ) || empty( $arrURL['scheme'] ) ) {
if ( empty( $url ) || empty( $parsed_url['scheme'] ) ) {
$response = new WP_Error( 'http_request_failed', __( 'A valid URL was not provided.' ) );
/** This action is documented in wp-includes/class-http.php */
do_action( 'http_api_debug', $response, 'response', 'Requests', $parsed_args, $url );