
PRyC WP: Force protocol relative to uploaded media
v1.0.3Patryk · 2016年7月16日 上架
Force protocol relative (\ instead http:\ or https:\) for files added in the content editor (eg. post, page)
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 2,050
- 最近更新
- 2026年6月10日
需要 WordPress 3.0.1+已测试到 7.0.9
贡献者
Force protocol relative (\ instead http:\ or https:\) for files added in the content editor (eg. post, page)
Before, when add media:
<a href="https://wordpress.org/wp-content/uploads/some-cool-photo.png"><img src="https://wordpress.org/wp-content/uploads/some-cool-photo.png" alt="Some cool photo" width="1920" height="1410" class="aligncenter size-full wp-image-19200813" /></a>
After, when add media:
<a href="//wordpress.org/wp-content/uploads/some-cool-photo.png"><img src="https://wordpress.org/wp-content/uploads/some-cool-photo.png" alt="Some cool photo" width="1920" height="1410" class="aligncenter size-full wp-image-19200813" /></a>
The plugin works only for newly added media (does not change the older entries).