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)
Return
(bool)
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; }
Expand full source codeCollapse full source codeView on TracView on GitHub