From be12fd20efd7e48edd424a3894a114fae2d7edcf Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 Sep 2021 16:57:46 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-http.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-http.php b/src/wp-includes/class-http.php index 24b7724b89..320b4fcf1c 100644 --- a/src/wp-includes/class-http.php +++ b/src/wp-includes/class-http.php @@ -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 );