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

WP_Http::parse_url() WordPress Method

The WP_Http::parse_url() function parses a URL and returns an associative array of its components.

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

Top ↑

See also


Top ↑

Parameters

$url

(string)(Required)The URL to parse.


Top ↑

Return

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


Top ↑

Source

File: wp-includes/class-wp-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
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.