【发布时间】:2018-06-30 21:02:29
【问题描述】:
我在 HTTPS 中有一个网站 wordpress,但由于 ARForms 插件,我也有一个混合内容。 PHP 5.6 fonts.googleapis.com 和这个插件中的一些图像不安全,我在数据库 anf 模板文件中找不到这些文件,请通过 PHP 帮助我。 谢谢你。 这是我在配置中发现的,这个功能不起作用:
$arfsiteurl = home_url();
if (is_ssl() and ( !preg_match('/^https:\/\/.*\..*$/', $arfsiteurl) or ! preg_match('/^https:\/\/.*\..*$/', WP_PLUGIN_URL))) {
$arfsiteurl = str_replace('http://', 'https://', $arfsiteurl);
define('ARFURL', str_replace('http://', 'https://', WP_PLUGIN_URL . '/arforms'));
} else {
define('ARFURL', WP_PLUGIN_URL . '/arforms');
}
【问题讨论】: