Requests_IRI::set_userinfo() WordPress Method

The Requests_IRI::set_userinfo() method is used to set the userinfo component of an IRI. The userinfo component is everything between the scheme and authority components, including the leading "//". It is typically used to set a username and password for authentication purposes.

Requests_IRI::set_userinfo( string $iuserinfo ) #

Set the iuserinfo.


Parameters

$iuserinfo

(string)(Required)


Top ↑

Return

(bool)


Top ↑

Source

File: wp-includes/Requests/IRI.php

	protected function set_userinfo($iuserinfo) {
		if ($iuserinfo === null) {
			$this->iuserinfo = null;
		}
		else {
			$this->iuserinfo = $this->replace_invalid_with_pct_encoding($iuserinfo, '!$&\'()*+,;=:');
			$this->scheme_normalization();
		}

		return true;
	}

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.