Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #15928, comment 78


Ignore:
Timestamp:
11/05/2014 02:10:11 PM (9 years ago)
Author:
cliffpaulick
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15928, comment 78

    initial v1  
    22
    33{{{
    4 [media id=17293 classes="center whatever-custom" width=400 height=600 forcescheme=http /]
     4[media id=17293 classes="center whatever-custom" width=400 height=600 protocol=http caption="A <span style='color:blue;'>blue</span> house" /]
    55}}}
    66
    77That would output whatever it is: img, pdf, audio, whatever
    8 That way the shortcode would always be the current URL scheme unless they specifically add the 'forcescheme' attribute
     8That way the shortcode would always be the current URL scheme unless they specifically add the 'protocol' (https, http, relative) attribute
    99
    1010Obviously, not the perfect example, but you get the point.
     11
     12You could also add a setting to the Media settings to choose your preferred attachment protocol if not overridden (e.g. I might choose 'relative').