[wp-trac] [WordPress Trac] #15928: wp_get_attachment_url does not check for HTTPS
WordPress Trac
noreply at wordpress.org
Wed Nov 5 14:00:42 UTC 2014
#15928: wp_get_attachment_url does not check for HTTPS
-------------------------------------+---------------------------
Reporter: atetlaw | Owner: boonebgorges
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.1
Component: Permalinks | Version: 3.0.3
Severity: normal | Resolution:
Keywords: needs-testing has-patch | Focuses:
-------------------------------------+---------------------------
Comment (by cliffpaulick):
What if using the media inserter just output a shortcode like this:
{{{
[media id=17293 classes="center whatever-custom" width=400 height=600
forcescheme=http /]
}}}
That would output whatever it is: img, pdf, audio, whatever
That way the shortcode would always be the current URL scheme unless they
specifically add the 'forcescheme' attribute
Obviously, not the perfect example, but you get the point.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15928#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list