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
This commit is contained in:
parent
01e6d31b3f
commit
dfbdd86d59
|
@ -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 );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue