#37363 closed defect (bug) (fixed)
Instance query argument breaks YouTube URL parsing in MediaElement.js
Reported by: | ocean90 | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Media | Keywords: | upstream |
Focuses: | Cc: |
Description
See ticket:36759:8:
Works: [video src="https://youtu.be/mhnuES3Zgr4"]
Broken: [video src="https://www.youtube.com/watch?v=mhnuES3Zgr4"]
That's because wp_video_shortcode()
appends an instance argument to the original URL, which results in http://www.youtube.com/watch?v=mhnuES3Zgr4&_=2
.
This extra query argument breaks this line in MediaElement.js.
I'm going to report this upstream as well.
Change History (3)
Note: See
TracTickets for help on using
tickets.
Pull request: https://github.com/johndyer/mediaelement/pull/1774