SimplePie_Sanitize::is_https_domain()
Check if the domain is in the list of forced HTTPS.
{} It's a method of the class: SimplePie_Sanitize{}
No Hooks.
Return
null
. Nothing.
Usage
// protected - for code of main (parent) or child class $result = $this->is_https_domain( $domain );
- $domain (required)
- -
Code of SimplePie_Sanitize::is_https_domain() SimplePie Sanitize::is https domain WP 6.0
protected function is_https_domain($domain) { $domain = trim($domain, '. '); $segments = array_reverse(explode('.', $domain)); $node =& $this->https_domains; foreach ($segments as $segment) {//Explore the tree if (isset($node[$segment])) { $node =& $node[$segment]; } else { break; } } return $node === true; }