Requests_IRI::get_iri() WordPress Method
The Requests_IRI::get_iri() method is used to get the IRI for the given URL. It takes a URL as its only parameter and returns the IRI as a string.
Requests_IRI::get_iri() #
Get the complete IRI
Return
(string|false)
Source
File: wp-includes/Requests/IRI.php
protected function get_iri() { if (!$this->is_valid()) { return false; } $iri = ''; if ($this->scheme !== null) { $iri .= $this->scheme . ':'; } if (($iauthority = $this->get_iauthority()) !== null) { $iri .= '//' . $iauthority; } $iri .= $this->ipath; if ($this->iquery !== null) { $iri .= '?' . $this->iquery; } if ($this->ifragment !== null) { $iri .= '#' . $this->ifragment; } return $iri; }
Expand full source codeCollapse full source codeView on TracView on GitHub