From dfbdd86d5902f46b91980f0f82c21f2aa35ba0de Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 19 Sep 2021 16:58:59 +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. Built from https://develop.svn.wordpress.org/trunk@51823 git-svn-id: http://core.svn.wordpress.org/trunk@51430 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-http.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-http.php b/wp-includes/class-http.php index 24b7724b89..320b4fcf1c 100644 --- a/wp-includes/class-http.php +++ b/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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index e3a85e72c1..6d603870b0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51822'; +$wp_version = '5.9-alpha-51823'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.