WpOrg\Requests

Iri::set_queryprotectedWP 1.0

Set the iquery.

Method of the class: Iri{}

No Hooks.

Returns

true|false.

Usage

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

Iri::set_query() code WP 7.0

protected function set_query($iquery) {
	if ($iquery === null) {
		$this->iquery = null;
	}
	else {
		$this->iquery = $this->replace_invalid_with_pct_encoding($iquery, '!$&\'()*+,;=:@/?', true);
		$this->scheme_normalization();
	}
	return true;
}