wordpress / latest / classes / requests_iri / scheme_normalization.html

Requests_IRI::scheme_normalization()

Source

File: wp-includes/Requests/IRI.php. View all references

protected function scheme_normalization() {
	if (isset($this->normalization[$this->scheme]['iuserinfo']) && $this->iuserinfo === $this->normalization[$this->scheme]['iuserinfo']) {
		$this->iuserinfo = null;
	}
	if (isset($this->normalization[$this->scheme]['ihost']) && $this->ihost === $this->normalization[$this->scheme]['ihost']) {
		$this->ihost = null;
	}
	if (isset($this->normalization[$this->scheme]['port']) && $this->port === $this->normalization[$this->scheme]['port']) {
		$this->port = null;
	}
	if (isset($this->normalization[$this->scheme]['ipath']) && $this->ipath === $this->normalization[$this->scheme]['ipath']) {
		$this->ipath = '';
	}
	if (isset($this->ihost) && empty($this->ipath)) {
		$this->ipath = '/';
	}
	if (isset($this->normalization[$this->scheme]['iquery']) && $this->iquery === $this->normalization[$this->scheme]['iquery']) {
		$this->iquery = null;
	}
	if (isset($this->normalization[$this->scheme]['ifragment']) && $this->ifragment === $this->normalization[$this->scheme]['ifragment']) {
		$this->ifragment = null;
	}
}

Used By

Used By Description

© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/requests_iri/scheme_normalization