Requests_IRI::get_iauthority() WordPress Method
The Requests_IRI::get_iauthority() method is a static method that can be used to get the authority component of an IRI.
Requests_IRI::get_iauthority() #
Get the complete iauthority
Return
(string|null)
Source
File: wp-includes/Requests/IRI.php
protected function get_iauthority() { if ($this->iuserinfo === null && $this->ihost === null && $this->port === null) { return null; } $iauthority = ''; if ($this->iuserinfo !== null) { $iauthority .= $this->iuserinfo . '@'; } if ($this->ihost !== null) { $iauthority .= $this->ihost; } if ($this->port !== null) { $iauthority .= ':' . $this->port; } return $iauthority; }
Expand full source codeCollapse full source codeView on TracView on GitHub