WpOrg\Requests

Iri::set_fragmentprotectedWP 1.0

Set the ifragment.

Method of the class: Iri{}

No Hooks.

Returns

true|false.

Usage

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

Iri::set_fragment() code WP 7.0

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