Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114

Notice: 函数 _load_textdomain_just_in_time 的调用方法不正确bravada 域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init 操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /www/wwwroot/qq.wanuse.com/wp-includes/functions.php on line 6114
wordpress开启ssl后css无法加载的解决 - DDD网络科技
使用互联网记录分享(Wide Area Network use :更好地使用互联网。)
wordpress开启ssl后css无法加载的解决

wordpress开启ssl后css无法加载的解决

方法一:找到functions.php,添加如下代码:

wordpress开启ssl后css无法加载的解

add_filter('script_loader_src', 'agnostic_script_loader_src', 20,2);

function agnostic_script_loader_src($src, $handle) {

    return preg_replace('/^(http|https):/', '', $src);

}
  
add_filter('style_loader_src', 'agnostic_style_loader_src', 20,2);

function agnostic_style_loader_src($src, $handle) {

    return preg_replace('/^(http|https):/', '', $src);

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注