WordPress at a glance
function is not described

WP_Http::parse_url() protected WP 1.0

Deprecated from version 4.4.0. It is no longer supported and can be removed in future releases. Use wp_parse_url() instead.

Used as a wrapper for PHP's parse_url() function that handles edgecases in < PHP 5.4.7.

{} It's a method of the class: WP_Http{}

No Hooks.

Return

true|false|Array. False on failure; Array of URL components on success; See parse_url()'s return values.

Usage

$result = WP_Http::parse_url( $url );
$url(string) (required)
The URL to parse.

Notes

  • See: wp_parse_url()

Changelog

Deprecated Since 4.4.0 Use wp_parse_url()

Code of WP_Http::parse_url() WP 5.7.1

<?php
protected static function parse_url( $url ) {
	_deprecated_function( __METHOD__, '4.4.0', 'wp_parse_url()' );
	return wp_parse_url( $url );
}