Forcing SSL Return For YouTube oEmbed
-
In my country YouTube does not work without SSL(https://). So, we use secure embed while using YouTube Sharing code. But I was forcing our writer to use oEmbed, instead of iframe code, as then we will have better dynamic control to resize. Today I was making writing the article below
https://thetechjournal.com/all-home-entertainment/watch-this-new-mind-blowing-ipad-magic-video.xhtml
Used the https link (https://www.youtube.com/watch?v=i-GZqni4IfA) as you could see from the source it returns without SSL.
<iframe width="720" height="405" src="https://www.youtube.com/embed/i-GZqni4IfA?feature=oembed" frameborder="0" allowfullscreen></iframe>
I know about the Ticket #18719 and understand @nacin’s point as its YouTube’s ignorance that handles SSL request poorly, as described many times by Otto.
But here I want a choice. In my post I used https link, I want to force WordPress oEmbed function to return with https too.
<iframe width="720" height="405" src="https://www.youtube.com/embed/i-GZqni4IfA?feature=oembed" frameborder="0" allowfullscreen></iframe>
As I could understand its will not be implemented into core just yet, then I want some hooks, a switch, so I could force via function.php maybe. Its important to me and probably for other hundreds of millions of people out there.
- The topic ‘Forcing SSL Return For YouTube oEmbed’ is closed to new replies.