the http site URL for this website
*/
protected function configureSiteOnly() {
if (!empty($this->options['site_only'])) {
$this->process_only_site = site_url('', 'http');
}
}
/**
* load text translations
*/
public function loadTranslations() {
load_plugin_textdomain('ssl-insecure-content-fixer');
}
/**
* fix images, embeds, iframes in content
* @param string $content
* @return string
*/
public function fixContent($content) {
static $searches = array(
'#<(?:img|iframe) .*?src=[\'"]\Khttp://[^\'"]+#i', // fix image and iframe elements
'#]*href=[\'"]\Khttp://[^\'"]+#i', // fix link elements
'#