
Force protocol relative (\ instead http:\ or https:\) for files added in the content editor (eg. post, page)
| Author: | Patryk (profile at wordpress.org) |
| WordPress version required: | 3.0.1 |
| WordPress version tested: | 7.0 |
| Plugin version: | 1.0.3 |
| Added to WordPress repository: | 16-07-2016 |
| Last updated: | 10-06-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 2 050 |
| Active installs: | 10+ |
![]() Click to start download |
|
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).
ChangeLog
