Warning: This method has been deprecated. Use wp_parse_url() instead.

WP_Http::parse_url( string $url )

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


Description Description

See also See also


Top ↑

Parameters Parameters

$url

(string) (Required) The URL to parse.


Top ↑

Return Return

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


Top ↑

Source Source

File: wp-includes/class-http.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.