WordPress.org

Make WordPress Core

Changes between Version 3 and Version 4 of Ticket #44610, comment 9


Ignore:
Timestamp:
07/23/2018 01:54:22 PM (2 years ago)
Author:
jepperask
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #44610, comment 9

    v3 v4  
    1313I'll test more if needed. If you inspect the JS-file, you will find that the Regex is extracting the video-ID, and regardless of what the original URL was, it will appropriately set the URL to:\\
    1414{{{#!php
    15 {(http|https):}//(youtube|youtube-nocookie).com/embed/{ID}
     15(http|https)://(youtube|youtube-nocookie).com/embed/{ID}
    1616}}}
    1717Schema is set to location.protocol, as I was unable to set the host argument with https when called from my localhost (http).