Used By
| Used By | Description |
|---|---|
| wp-includes/Requests/IRI.php: Requests_IRI::get_iri() | Get the complete IRI |
| wp-includes/Requests/IRI.php: Requests_IRI::get_authority() | Get the complete authority |
Get the complete iauthority
(string)
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;
}
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_iri/get_iauthority