Opened 7 years ago
Closed 7 years ago
#40977 closed defect (bug) (fixed)
Widgets: Query param for `loop` added for non-hosted external videos
Reported by: | westonruter | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.8.1 | Priority: | normal |
Severity: | normal | Version: | 4.8 |
Component: | Widgets | Keywords: | has-patch has-unit-tests fixed-major |
Focuses: | Cc: |
Description (last modified by )
When embedding an external video file into a video widget, the video shortcode is currently failing to render the video due to the erroneous injection of a loop
query parameter. The loop
parameter was specifically added to work around a Vimeo issue, but the logic was not properly restricted to only effect Vimeo URLs. For more background, see https://github.com/xwp/wordpress-develop/pull/232#issuecomment-306861073
Note that the need for the loop
parameter will be eliminated once the upgrade to ME.js 4.x is done. See #39686.
Attachments (1)
Change History (8)
Note: See
TracTickets for help on using
tickets.
In 40977.1.diff the logic for adding the vimeo loop query param has been moved to
wp_video_shortcode
and tests have been added.YouTube loop bug is still present, hopefully the mejs upgrade lands soon so we can back out this fix entirely.
This diff does fix the issue seen with linking to external mp4 files.