WordPress at a glance
function is not described

Requests_IRI::set_path() protected WP 1.0

Set the ipath.

It's a method of the class: Requests_IRI{}

No Hooks.

Return

true/false.

Usage

// protected - for code of main (parent) or child class
$result = $this->set_path( $ipath );
$ipath(string) (required)

Code of Requests_IRI::set_path() WP 5.5.1

<?php
protected function set_path($ipath) {
	static $cache;
	if (!$cache) {
		$cache = array();
	}

	$ipath = (string) $ipath;

	if (isset($cache[$ipath])) {
		$this->ipath = $cache[$ipath][(int) ($this->scheme !== null)];
	}
	else {
		$valid = $this->replace_invalid_with_pct_encoding($ipath, '!$&\'()*+,;=@:/');
		$removed = $this->remove_dot_segments($valid);

		$cache[$ipath] = array($valid, $removed);
		$this->ipath = ($this->scheme !== null) ? $removed : $valid;
	}
	$this->scheme_normalization();
	return true;
}