#37363 closed defect (bug) (fixed)
Instance query argument breaks YouTube URL parsing in MediaElement.js
| Reported by: | ocean90 | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Media | Version: | |
| Severity: | normal | Keywords: | upstream |
| Cc: | Focuses: |
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