mirror of
git://develop.git.wordpress.org/
synced 2025-03-24 22:10:02 +01:00
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:
parent
f386f6f5ed
commit
be12fd20ef
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user