SimplePie_Sanitize::set_https_domains()publicWP 1.0

Set the list of domains for which to force HTTPS.

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

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Sanitize = new SimplePie_Sanitize();
$SimplePie_Sanitize->set_https_domains( $domains );
$domains (required)
-

Notes

  • See: SimplePie_Misc::https_url()
    Example array('biz', 'example.com', 'example.org', 'www.example.net');

Code of SimplePie_Sanitize::set_https_domains() WP 6.0

public function set_https_domains($domains)
{
	$this->https_domains = array();
	foreach ($domains as $domain)
	{
		$domain = trim($domain, ". \t\n\r\0\x0B");
		$segments = array_reverse(explode('.', $domain));
		$node =& $this->https_domains;
		foreach ($segments as $segment)
		{//Build a tree
			if ($node === true)
			{
				break;
			}
			if (!isset($node[$segment]))
			{
				$node[$segment] = array();
			}
			$node =& $node[$segment];
		}
		$node = true;
	}
}