BACK TO DIRECTORY

PRyC WP: Force protocol relative to uploaded media

by Patryk

0.0
(0 ratings)

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).

Plugin Details

Active Installs
10
Total Downloads
1,929
Version
1.0.3
Requires WP
3.0.1
Requires PHP
Tested Up To
7.0.4
Added
2016-07-16
Last Updated
2026-06-10 10:24am GMT

Ratings

5
0
4
0
3
0
2
0
1
0