【问题标题】:Wordpress- Uploaded image in 'Media Library' not displaying (insecure content Issue)Wordpress-“媒体库”中上传的图像未显示(内容不安全问题)
【发布时间】:2014-01-31 07:19:06
【问题描述】:

在开发者选项卡中调试时遇到错误:

The page at ‘https://...' was loaded over HTTPS, but displayed insecure content from ‘http://..../files/2013/12/Penguins-150x150.jpg': this content should also be loaded over HTTPS.

在“媒体库(media-new.php)”中添加新图片时,您认为我们需要更改图片的 URL/永久链接并将其更改为“HTTPS”吗?

您知道从哪里开始吗?让我知道你对此的看法。

请帮忙。谢谢。

【问题讨论】:

    标签: php image wordpress blogs media-library


    【解决方案1】:

    您应该从 url 中省略协议名称,使其看起来像:

    //domain.com/myimage.jpg

    这将通过当前用于该页面的协议加载图像。

    【讨论】:

    • 我真的很想试试这个,但我是 wordpress 新手,我不知道我应该在哪里设置,或者我应该修改哪个 php 文件。
    • 看看这里sitepoint.com/crimes-against-wordpress 并从标题Failing to Support HTTPS开始阅读
    • 我认为@Bart 试图告诉你的是,如果你不知道他在说什么,那么很可能是你的插件/主题之一要受到责备..
    猜你喜欢
    • 1970-01-01
    • 2015-05-07
    • 1970-01-01
    • 1970-01-01
    • 2021-07-11
    • 1970-01-01
    • 2018-02-11
    • 2019-12-22
    • 2023-01-15
    相关资源
    最近更新 更多